• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Applescript (Quicktime) "with replacing" bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Applescript (Quicktime) "with replacing" bug
      • From: Skeeve <email@hidden>
  • Prev by Date: Re: Bundle Content drawer - what's it good for?
  • Next by Date: Re: Applescript (Quicktime) "with replacing" bug
  • Previous by thread: Address Book Custom Date
  • Next by thread: Re: Applescript (Quicktime) "with replacing" bug
  • Index(es):
    • Date
    • Thread