Screen Shots

Stellor

Registered
Hi there,
When I take screen shots they're saved as Acrobat files by default, but I would like them saved in Preview. Changing them is not a big deal, but don't think I should have to do it manually.
This is on a G-5 DP 2.0 GIG running 10.3.8.
Thanks for any help,
Sam
 
open the info dialog of your file
select "open with"
change the preference for all similar files
 
Save a screenshot, then highlight it, then go to the Menu item File->Get Info (or a a Command button(Apple button)+i). Then change the default Application in the pull down list, then hit the button that says Change All. Your done!
 
Save this Script as a Script, then make a folder action to the desktop. it will give you the option of choosing the format to .jpg or .pic, or you can chage it.

on adding folder items to this_folder after receiving these_items
repeat with an_item in these_items
tell application "Finder"
set file_name to name of an_item
set file_ext to name extension of an_item
set desk_path to (this_folder as string)

set pdf_size to (size of file an_item as integer)
repeat until pdf_size > 0
delay 1
set pdf_size to (size of file an_item as integer)
end repeat

if file_name starts with "Picture" and file_ext is "PDF" then
set format_return to display dialog "Select output format." buttons {".pct", ".jpg"} default button ".jpg"
set output_format to button returned of format_return
set AppleScript's text item delimiters to "."
set base_filename to the first text item of file_name
set img_path to desk_path & base_filename & output_format
tell me to convert(an_item, img_path, output_format)
end if
end tell
end repeat
end adding folder items to

on convert(img_file, img_path, output_format)
tell application "Image Events"
launch
set image_ref to open img_file
if output_format is ".jpg" then
save image_ref in img_path as JPEG with icon
delete img_file
else if output_format is ".pct" then
save image_ref in img_path as PICT with icon
delete img_file
end if
close image_ref
end tell
end convert
 
chevy, Satcomer, Thanks for the quick response. I suffer from a sever case of "CAN'T SEE THE FOREST FOR THE TREES" syndrom. Thanks for clearing the way.
bobw, Thanks for the GREAT script. I have wanted to try scripting for a long time, but didn't know how to get started. With this script I will know if I'm doing it right because I know what the end result should be.
Thanks again all.
Sam
 
Back
Top