• 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
Re: Stumped with open file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stumped with open file


  • Subject: Re: Stumped with open file
  • From: JJ <email@hidden>
  • Date: Wed, 20 Mar 2002 21:35:12 +0100

> 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

This should work if the file is at desktop.
A trick long commented at this list is make "relative" paths to "me" (the
running app).

":" as alias
-- folder wich contains "me"

":CS_User_Tutorial.pdf" as alias
-- this file is within folder wich contains "me".

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

Can I ask how do you find the AppleScript within the Flash projector. How do
you make a relative-path call (it's easy using "geturl" but, are you doing
it via "exec"?)

JJ
_______________________________________________
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: "Leif E. Wells" <email@hidden>
  • Prev by Date: Re: newbie - listing items in trash - Thanks! simple command worked.
  • Next by Date: Re: Error code
  • Previous by thread: Re: Stumped with open file
  • Next by thread: Re: Stumped with open file
  • Index(es):
    • Date
    • Thread