Hi All,
This is very much like other printing issues, but I was hoping to make a script that could universal for all types of OS X.
heres what I have:
tell Application “Preview”
activate
set printFile to alias “Macintosh HD:Applications:appPath:after.jpg”
open printFile
print printFile
end tell
Why won’t that work? I’ve noticed a lot of responses that have very Jaguar or Panther specific code using system events and keystrokes…I can’t really have this unless there’s a way with applescript to tell what OS I’m working with…
this works but only on Panther:
tell application “Preview”
activate
open “Macintosh HD:Applications:appPath:after.jpg”
end tell
tell application “System Events”
tell process “Preview”
tell front window
keystroke “p” using command down
tell window “Print”
end tell
end tell
end tell
end tell
Please Help
thanks in advance!