launching script like from a command line?
launching script like from a command line?
- Subject: launching script like from a command line?
- From: "francesco" <email@hidden>
- Date: Mon, 30 Oct 2000 16:42:51 +0100
I'm a newbie of AppleScript but I used very often some other scripting
languages especially for web purposes.
Now I'm making a cdrom with Flash technology from macromedia. There is an
internal command in Flash used to execute external applications. Example: I
have the script "Copy", I use the internal Flash command FSCommand("exec",
"Copy") and the script starts and executes without problems. The script used
is a simple script that copies one file into a folder on my desktop, the
problem is that the name of the file is now static. Using a droplet I could
have taken the name of the file as a dynamic parameter but I'm launching the
script from within flash than I must find a way to call the script like from
a command line. I tried FSCommand("exec", "Copy sourcefilename") but the
script doesn't start at all. On pc with dos commands it works, that's
probably because some exe files, especially command line ones, wait for some
options when they are called. Is there a way to pass parameters to an
applescript in a similar way...
Thanks
Francesco