| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
anything...are you sure?
Join Date: Jul 2001
Location: Mexico City
Posts: 560
|
Ok.. here we go:
ActionScript Code:
"runthis" is a AppleScript, of course!!! The folder path: "Any name" Main Folder, inside, the projector and "fscommand" named folder, inside this folder, the AppleScript "runthis" (any AppleScript)... you don't have to specify the full path as in flash 5 Only works with with a created projector, not in test mode(inside Flash App) or swf. And for full details about Applescript and opening files on CD: full reference ![]() |
|
|
|
|
|
#2 |
|
Registered User
Join Date: May 2002
Posts: 5
|
Hello,
I'm making a crossplatform CD for my sisters dance team (donation to 43 girls, sophmores->seniors)... I'm going to be loading movies ... AVI files... reading the forum I've noticed you are the wonderman of applescript. I've already got the EXE+Text file to open up the avi files for the PC ... but now I need applescript for the mac... I understand the fscommand ("exec","applescript name"); and that the applescript will go into "fscommand" located in the same level as projector (as I've stated, it works in Windows) but I don't know how to write applescript code for the mac. I see this code: tell application "Finder" activate select file "yourfile.avi" of disk "YourDisk" open selection end tell But I'm a little confused on what I should do with of disk YOURDISK .... My dir looks like this: [Projector].exe [Projector].hqx [Folder]fscommand [Folder]Images [Folder]Sounds [Folder]Movies Inside Movies are all the movies, and in fscommand there are exe files that match the movies in the folder Movies and load them accordingly. How can I do this with applescript? Do I have to put the movies/applescript/exe files all in the same folder (aka fscommand) or can I have applescript load the movies like the EXEs do? Thank you for your help. I appreciate your help. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2002
Posts: 5
|
Also, I only have access to a PC... is there anyway I could write and compile the code for the mac on my PC? I really need this project to be crossplatform compatible.
Thanks. |
|
|
|
|
|
#4 |
|
anything...are you sure?
Join Date: Jul 2001
Location: Mexico City
Posts: 560
|
sorry for the delay to answer, been away for long time...
you will need a Mac and the Applescript editor to compile the Applescript... you just let the Applescript editor do the script for you example: you do this...select disk, open folder, select file, openfile, etc... and the editor writes the code needed to repeat each step. or you can write down the script inside the editor... and then compile it... The reference "Your disk" is just the name you will give to your cd when burning it ( you have to plan very well the files structure, cos it's needed later by the Applescript). If you can, get someone with a Mac to help you with this...and to burn the cd, its the easy way. BTW. if you have Flash MX, you can stream the videos inside flash player (haven't tryed my self with heavy videos anyway) and this works on Mac and Win without anything else needed. Last edited by zoomfreddy; 05-06-2002 at 10:43 PM.. |
|
|
|
|
|
#5 |
|
Addict
Join Date: Nov 2001
Location: London
Posts: 2,128
|
Hi
I'm having problems with this I have the following code on my button ActionScript Code:
tell application "Finder" activate select file "FMB.pdf" of disk "FMB" open selection end tell The PDF does not open at all - the script is fine as when you run the script it opens the PDF from the FMB Disk but the profector does not seem to be activating the script (i've put it in a folder called 'fscommand' its called "openPDF" and the folder is at the same level as the projector). any help appreciated |
|
|
|
|
|
#6 |
|
anything...are you sure?
Join Date: Jul 2001
Location: Mexico City
Posts: 560
|
haven't tried this since 1 year or more but...
did you saved the applescript as executable applet?, you will find that option in: "save as", there you have to choose file format: application and something like "just execute" (as I'm on spanish Os, don't remember the english version ), this may solve your trouble. |
|
|
|
|
|
#7 |
|
Registered User
|
Hi everyone,
Thought this might be a good forum in which to ask this question. I have read on here about how to launch an AppleScript from a Flash projector. I'm currently working on a personal project that requires me to use Flash MX as the front-end for a user interface, and based on my limited knowledge of actual programming and my desire to not re-invent the wheel, I am using AppleScript for the back end. Therefore, I will have to call an AppleScript every time a button is pressed by the user. Given the three-second delay minimum that it seems to take to call an Application AppleScript through Flash, this will not work. I have come to the conclusion that I either need 1) a way to call a regular compiled script and run it or 2) find a way to pass variables from Flash to the AppleScript in order to store all subroutines inside one script. Any advice you all could offer would be much appreciated. Thanks! Brandon |
|
|
|
|
|
#8 |
|
anything...are you sure?
Join Date: Jul 2001
Location: Mexico City
Posts: 560
|
Can you elaborate a little more about what you want to do?
what will be doing the applescript that needs to be executed after each click? |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Oct 2005
Posts: 1
|
I need to make a CD that is cross platform for Mac, and PC. I currently have a projector .exe file that uses fscommands to launch files using another exe file. However I need to be able to launch files from the Mac projector too, and the exe will not work. So if anyone knows how to write an applescript that does this, and what the actionscript would be too Id appreciate it.
|
|
|
|
|
|
#10 |
|
Registered User
Join Date: Feb 2005
Posts: 4
|
Thought to tell you about the last thing I used…
http://www.adobe.com/products/flashpaper/ The flash paper appears as plugin in acrobat & word so that it transforms the pdf/doc into swf searchable & working perfectly. Using the action script code described below it can be loaded into a movie clip & yes it work properly & valid on windows & macintosh http://www.adobe.com/devnet/flashpap...paper2_02.html RubyDo |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why everyone hates (or should hate!) mircosoft | stealthelephant | General Chat | 102 | 11-28-2008 10:02 PM |
| how can i open .vob(dvd video files) using fscommand? | sineadhartley | ActionScript 2.0 | 2 | 04-14-2004 04:16 AM |
| save or open .swf files | superjan | Server-Side Scripting | 1 | 03-08-2004 12:02 PM |
| using java script to open local files | paradice | ActionScript 1.0 (and below) | 1 | 11-06-2002 06:04 PM |
| i downloaded a .fla files and i couldnt open it in my flash | kcaj | Animation and Effects | 1 | 10-04-2002 10:39 AM |