Opening files from Flash
Opening files from Flash
- Subject: Opening files from Flash
- From: Sam Thorne <email@hidden>
- Date: Tue, 08 May 2001 14:12:53 +0100
Hi, I'm trying to get applie script to open files from flash (which can open
apps, but not docs), but what I'd like to do is to specify the file via a
url I send out from flash.
At the moment I've got this:
--set the name of the movie to open
property movieName : "movie.mov"
--get the path to the containing folder
set myPath to (path to me as string)
set AppleScript's text item delimiters to ":"
set the parentFolder to ,
((text items 1 thru -2 of myPath) & "") as string
set AppleScript's text item delimiters to ""
-- find the flash file
try
set targetMovie to alias (the parentFolder & movieName)
on error
--ie if there's no movie file here by this name, it will quit.
return quit
end try
tell application "Finder"
open file targetMovie
end tell
I realise I'd have to use handle CGI, but I don't know how.
--
Sam
_____________________________________
So long, and thanks for all the fish.