May 6, 200520 yr Hi I am using a script to open a pdf for a Mac. It is the perform Apple Script and the script says: Tell "Finder" open file "Intro.pdf" of disc "Notre Dame" Open Selection End Tell I am pretty sure this is what it says, since I am writing this on my PC, can't be 100% sure. But the script was working a while back, and now it's not, just wanted to see if anyone had any ideas, or similar problems. Thanks!
May 6, 200520 yr It's kind of hard to write AppleScripts on a PC. You won't have any idea whether it's correct, and no feedback. Script Editor on a Mac would tell you immediately that your syntax is incorrect. The following would work, if the file "Intro.pdf" is on the top level of the "Notre Dame" disk (not "disc"). tell application "Finder" to open file "Intro.pdf" of disk "Notre Dame" or tell application "Finder" open file "Intro.pdf" of disk "Notre Dame" end tell You see the subtle difference, between a 1-line command (needs "to") and a nested command (separate lines). And "Finder" is an application.
May 6, 200520 yr Author I didn't write the Apple Script on the PC, I was writing my post on a PC, so since I don't have a Mac over here I couldn't read the script word for word. but it does say Disk not Disc. And I can't figure out any reason why it shouldn't be working. I am using the script that is nested.
May 6, 200520 yr And the commands are on separate lines? It may also be the "selection" line. Selection is the currently selected object(s) in the user interface window (what you clicked on). So you don't need or want that after you've already told the Finder to open a specific file.
May 6, 200520 yr Author It is all on separate lines, and I don't understand what you're meaning when you are talking about Selection Line.
May 6, 200520 yr Well, you have a line "open selection" in your first post. It's not needed or wanted.
Create an account or sign in to comment