• 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
Re: Applescript (Quicktime) "with replacing" bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript (Quicktime) "with replacing" bug


  • Subject: Re: Applescript (Quicktime) "with replacing" bug
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 19 Dec 2007 10:23:33 -0500

Uhm, yeah.  Even Unix, the king of the "But what if the user *wants*
to shoot himself in the foot?" design philosophy, refuses to replace a
directory with a single file.  You have to explicitly move or remove
the dir first.   I'm pretty sure "with replacing" is not intended to
be quite this powerful.  But even if it is, the real worrisome part is
the reported privilege escalation (assuming it's real; haven't
confirmed).

On 12/19/07, Nigel Garvey <email@hidden> wrote:
> "Sean DiZazzo" wrote on 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.
>
> That's exactly what you've told it to do.  :)  The 'to' parameter
> specifies the file as which you want to export the movie, not the folder
> in which you want the file to appear.
>
>
> NG
>
>  _______________________________________________
> 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
>


--
Mark J. Reed <email@hidden>
 _______________________________________________
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: Emmanuel <email@hidden>
References: 
 >Re: Applescript (Quicktime) "with replacing" bug (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: opening a file with the filename unknown
  • Next by Date: Re: Bundle Content drawer - what's it good for?
  • Previous by thread: Re: Applescript (Quicktime) "with replacing" bug
  • Next by thread: Re: Applescript (Quicktime) "with replacing" bug
  • Index(es):
    • Date
    • Thread