I have never really programmed anything before other than a TI-83 calculator in high school years ago... but I got my Mac in January, and I was curious to try out AppleScripts, since the OS X overview implied it was so easy.
All I want to do is tell it to print a bunch of pdf files without printing the first page of any of them (pages 2-?). I decided to try it out by just opening one of the files. Preview wasn't in the list of programs to use AppleScripts with, so I decided to use Safari. I made the following script:
tell application "Safari"
open file "Macintosh HD/Excerpts/Wagner/Lohengrin_prelude.pdf"
end tell
This was following what little basic information I could find in AppleScript help and online at <http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/AppleScript.fd.html>
However, when I try to run this script, Safari tells me that there is no file at that address!
Did I do something wrong?
Thanks
Tommy
All I want to do is tell it to print a bunch of pdf files without printing the first page of any of them (pages 2-?). I decided to try it out by just opening one of the files. Preview wasn't in the list of programs to use AppleScripts with, so I decided to use Safari. I made the following script:
tell application "Safari"
open file "Macintosh HD/Excerpts/Wagner/Lohengrin_prelude.pdf"
end tell
This was following what little basic information I could find in AppleScript help and online at <http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/AppleScript.fd.html>
However, when I try to run this script, Safari tells me that there is no file at that address!
Did I do something wrong?
Thanks
Tommy