Re: Stumped with open file
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.