Applescript (Quicktime) "with replacing" bug
Applescript (Quicktime) "with replacing" bug
- Subject: Applescript (Quicktime) "with replacing" bug
- From: "Sean DiZazzo" <email@hidden>
- Date: Tue, 18 Dec 2007 20:28:48 -0800
Hi Group,
Consider the following code...but DON'T EXECUTE IT!
set dest to "/usr/local/etc"
set dest to POSIX file dest
tell application "QuickTime Player"
tell document 1
export to file dest as QuickTime movie using most recent settings with replacing
end tell
end tell
On my machine, it will overwrite the directory "/usr/local/etc" with a quicktime file name "etc", wiping out the entire contents of the directory. It also will not honor the permissions of the folder, allowing any user to overwrite the root of a drive (untested) with a quicktime movie. I tested it by creating a folder, chown-ing it to root, chmod-ing it to 700. Then running the script as a local user with the directory as a destination. The folder was overwritten. Can anybody else (carefully) verify this problem?
~Sean DiZazzo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden