Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > Projectors and CDs

Reply
 
Thread Tools Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
Old 04-10-2002, 07:50 AM   #1
zoomfreddy
anything...are you sure?
 
zoomfreddy's Avatar
 
Join Date: Jul 2001
Location: Mexico City
Posts: 560
Default open Files w/Flash MX/Applescript!!!(Mac)

Ok.. here we go:

ActionScript Code:
on (release) {     fscommand ("exec", "runthis"); }

"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

zoomfreddy is offline   Reply With Quote
Old 05-02-2002, 01:32 AM   #2
Mannkind
Registered User
 
Join Date: May 2002
Posts: 5
Default Help needed

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.
Mannkind is offline   Reply With Quote
Old 05-02-2002, 05:49 AM   #3
Mannkind
Registered User
 
Join Date: May 2002
Posts: 5
Default

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.
Mannkind is offline   Reply With Quote
Old 05-06-2002, 10:36 PM   #4
zoomfreddy
anything...are you sure?
 
zoomfreddy's Avatar
 
Join Date: Jul 2001
Location: Mexico City
Posts: 560
Default

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..
zoomfreddy is offline   Reply With Quote
Old 12-04-2003, 08:41 AM   #5
Tink
Addict
 
Tink's Avatar
 
Join Date: Nov 2001
Location: London
Posts: 2,128
Default

Hi

I'm having problems with this

I have the following code on my button
ActionScript Code:
on (release) {         fscommand ("exec", "openPDF"); }
this is my applescript

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
Tink is offline   Reply With Quote
Old 12-07-2003, 04:49 AM   #6
zoomfreddy
anything...are you sure?
 
zoomfreddy's Avatar
 
Join Date: Jul 2001
Location: Mexico City
Posts: 560
Default

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.
zoomfreddy is offline   Reply With Quote
Old 06-26-2004, 06:50 PM   #7
bvogts
Registered User
 
Join Date: Jun 2004
Location: Kansas
Posts: 1
Send a message via AIM to bvogts
Default Delay in Launching AppleScripts -- Help please?

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
bvogts is offline   Reply With Quote
Old 06-27-2004, 03:22 AM   #8
zoomfreddy
anything...are you sure?
 
zoomfreddy's Avatar
 
Join Date: Jul 2001
Location: Mexico City
Posts: 560
Default

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?
zoomfreddy is offline   Reply With Quote
Old 10-13-2005, 03:29 PM   #9
JoeyC
Registered User
 
Join Date: Oct 2005
Posts: 1
Default

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.
JoeyC is offline   Reply With Quote
Old 12-30-2006, 02:50 PM   #10
RubyDo
Registered User
 
Join Date: Feb 2005
Posts: 4
Default

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
RubyDo is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 01:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.
You Rated this Thread: