• 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
Warning: Script Editor File Destruction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warning: Script Editor File Destruction


  • Subject: Warning: Script Editor File Destruction
  • From: daniel <email@hidden>
  • Date: Sun, 10 Oct 2004 16:01:38 -0700


So, maybe this makes me a candidate for the digital darwin award, but I managed to use Script Editor to destroy most of my ~/Library folder.

The dangerous command is the "save in" script command. I was trying to be clever and get Script Editor to display the "save" dialog with the location on disk preset. Instead, Script Editor tried to (I assume) replace the directory with the script.

The results are that the directory I pointed it at (~/Library) is almost entirely destroyed.

Dont' do this:

tell application "Script Editor"
set theDoc to make new document at end of documents
save theDoc in choose folder
end tell
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Regex substitute/replace function in Applescript?
  • Next by Date: RE: Extract words - problem solved.
  • Previous by thread: Styled text in Mail
  • Next by thread: RE: Extract words - problem solved.
  • Index(es):
    • Date
    • Thread