Launching Applescript from Flash/showing extensions
Launching Applescript from Flash/showing extensions
- Subject: Launching Applescript from Flash/showing extensions
- From: "email@hidden" <email@hidden>
- Date: Mon, 28 Jun 2004 10:57:02 -0400
To:email@hidden
CC:
BCC:
Subject:launching Applescript from within Flash/showing extensions
Greetings!
I have a Flash MX movie that I want to do the following: When the user
clicks a button, it launches a particular file in Adobe Acrobat Reader. The
file will eventually be on a CD Rom that should be cross-platform. I've got
the PC side figured out, but apparently the Mac side needs to use
Applescript, with which I am not at all familiar. I have some tips from
flashjester.com, which says to do the following:
the AppleScript and files should be in the same folder for the sake of
simplicity.
The applescript must be saved as an application, set to run only, and
with the extension visible. It is handy to keep the files in the
fscommand folder, so you must call it too:
tell application "Finder"
activate
select file "your_file.pdf" of folder "fscommand" of disk "Your_CD_image"
open selection
end tell
Save this as, for example, your_applescript.app
and the button code must read:
on (release) {
fscommand("exec", "your_applescript.app");
}
I have done all this, but each time I try it, nothing happens. I believe I
am doing everything right. I have my Flash projector file (not the .swf
file) and I have the fscommand folder with the applescript inside. One
thing I do not understand is the part about "and with the extension
visible." I know that my applescript script (saved as an action) is called
"getpdfmac." I think I called it "getpdfmac.app" but I don't see the .app
part. Is there some way to make extensions visible? For other files I see
the extension, like "welcome.swf." Maybe this is the problem--the extension
is not visible? This is the only thing I can figure that I'm not sure I'm
doing correctly.
If anyone can make any sense of this (it seems like a common issue), I
would greatly appreciate the help. I'd be glad to ftp or email you the file
so you can check it. If anyone has any ideas, please, please reply to this
post or email me at email@hidden.
THANKS!!!
Emily
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
_______________________________________________
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.