More Flash ??
- Started
- Last post
- 12 Responses
- madino
I am building a flash cd that launches pdf (s) and the applescript does not work... Has anyone done this and it worked???
here is the button code:
on (release) { fscommand("exec","openit.app");
}Here is the applescript:
tell application "Finder"
open file "firstfile.pdf" of disk "pdffiles"
end tell
- madino0
bump
- fusionpixel0
have you tried:
getURL("file.pdf");
?? the worx
- version30
thanks fusion
i thought he was making it too difficult myself
- madino0
GetUrl does not work when launching a pdf viewer...
- ozhanlion0
maybe try third party software. jugglar or a name I can't remember right now.
- madino0
crap, i am sorry... it is a mac issue. I should have explained it more....
any others???
- nacnud0
I'm curious too... Has anyone ever successfully launched a PDF from a Flash projector on Mac? If so...how?!
- acescence0
i worked at a place where one of the mac developers wrote a tiny app that did a "launch this file with this app" sort of thing.
i'd give that to you but it was a pre osx thing. it is possible, though, and apparently quite easy as it took him all of 5 minutes to make it.
- airey0
it may have been in director and not flash also as there are a few 3rd party plugins that do sort out the app / document thing.
the getURL should work but has to have your machine setup so the browser reads pdfs - strangly not always the default.
maybe:
http://www.actionscript.org/foru…
- madino0
still trying??
- UndoUndo0
all your files need to be in a folder named "fscommand" along with the applescript and any bat[pc] files for launching applications. this is new in flash mx. if they arent in this folder and it isnt named fscommand it wont work
http://www.macromedia.com/cfusio…
:))
- UndoUndo0
also check the OS with flash systemcapabilities class and then call either the applescript or .bat file dependant on the OS