• 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
Q: A compiled AppleScript fails to run at log-in (OS X 10.2)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Q: A compiled AppleScript fails to run at log-in (OS X 10.2)


  • Subject: Q: A compiled AppleScript fails to run at log-in (OS X 10.2)
  • From: email@hidden
  • Date: Mon, 30 Sep 2002 14:52:19 EDT

Dear fellow scripters,

I've got a simple script that checks for the presence of certain files
when run and moves them to the trash if found, then empties the trash
(explorer, netscape and AOL cache/cookie/history files -- an OS X version of
the same SuperPrivacy for OS 8.6 - 9.21 that I have on my website). I added
the script to the log-in items of OS X, so it runs when I log in.
Unfortunately, whenever it tries to run automatically at log in, it generates
various errors, usually a -1280 error. If I immediately run it manually from
the scripts menu as soon as I log in, it runs fine. Any clues?

Sample snippet:
tell application finder
set CachePath to "OS X HD:users:mg:library:preferences:explorer:cache:"
if folder exists (CachePath) then
move items of CachePath to trash
end if
end tell

Thanks in advance for the help.
=-= Marc Glasgow
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Q: A compiled AppleScript fails to run at log-in (OS X 10.2)
      • From: Camilla <email@hidden>
  • Prev by Date: Re: real comparison problems [Re: ASTest redux]
  • Next by Date: Re: Dictionary possibilities
  • Previous by thread: "difficulties in OO" [was Re: Adobe's lousy AppleScript implementations]
  • Next by thread: Re: Q: A compiled AppleScript fails to run at log-in (OS X 10.2)
  • Index(es):
    • Date
    • Thread