Oops, yes sorry.
I'd posted a copy script there before, but obviously not put it in
the FAQ, here you go:
--set the name of the file to copy
property fileName : "my file.doc"
--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 targetFile to alias (the parentFolder & fileName)
on error
--ie if there's no file here by this name, it will quit.
return quit
end try
tell application "Finder"
move file targetFile to desktop
--If it's a read only volume (like a cd), move will actually copy
end tell
On 21 Mar 2006, at 17:21PM, Paul Steven wrote:
Thanks Sam
Looks like you are opening the file
tell application "Finder"
open file targetFile
end tell
Is there an equivalent to just copy / save the file to the users
hard drive?
Thanks
Paul
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sam
Thorne
Sent: 21 March 2006 17:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Save file from Mac / Pc Projector on
CDROM to
Harddrive
I wrote an applescript a few years back that does this on Mac, on PC
you'll need to use something like a batch script or one of those
proxy exes you can call with fscommand.
http://flashkit.com/board/showthread.php?t=396320
(There are lots of free ones which will do just that, rather than
something bigger (and more expensive) like Zinc).
On 21 Mar 2006, at 16:49PM, Paul Steven wrote:
I need to include a button in a cdrom projector that when clicked
will copy
a particular file from the CDROM to the users hard drive with a
dialogue box
asking them where to save it to.
Any suggestions?
It must work on PC and MAC
Thanks
Paul
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
Regards,
Sam Thorne
Interaction Design
Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
Regards,
Sam Thorne
Interaction Design
Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com