Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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!

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.

  • 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.

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.

  • Author

It is all on separate lines, and I don't understand what you're meaning when you are talking about Selection Line.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.