• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Stumped with open file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stumped with open file


  • Subject: Stumped with open file
  • From: "Leif E. Wells" <email@hidden>
  • Date: Wed, 20 Mar 2002 12:04:41 -0500

I apologize if this is a question that has been asked before. I just joined the list and after re-reading the AppleScript documentation I am still having problems. (Are there archives somewhere?)

I have a Flash projector (a non-browser-based application) that needs to make a call to an AppleScript to open a PDF file. I am not having any difficulty finding and opening the AppleScript. I am having a tough time getting AppleScript to recognize the file.

The main problem is with relative paths or proper syntax, I guess. Since I do not know where the user will be downloading the Flash projector, AppleScript, and PDF file, I do not know what the absolute path to the PDF file will be.

I have read that all I need to do is:

tell application "Finder"
open file "CS_User_Tutorial.pdf"
end tell

My assumption (I know, never assume) is that if the file and the script/runtime script are in the same folder, the file should open. It does not. I am testing from the script editor and running a runtime app. I get "Cannot find file" errors, and yes the file is there.

What am I missing?

Thanks in advance for taking the time to read this long explanation.

Leif
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Stumped with open file
      • From: Rob Stott <email@hidden>
References: 
 >Re: Modifying aliases... (From: mjn <email@hidden>)

  • Prev by Date: Re: Set value of FileMaker container?
  • Next by Date: Re: Error code
  • Previous by thread: Re: Modifying aliases...
  • Next by thread: Re: Stumped with open file
  • Index(es):
    • Date
    • Thread