Q: A compiled AppleScript fails to run at log-in (OS X 10.2)
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.