|
|
|
Solved! Perl/Applescript combo...
I got it working! The answer is to write a simple little applescript like so: tell application "Finder" quit end tell tell application "Finder" activate end tell Then, save it in Mac OS X Applet format from ScriptEditor, and put it in a useful directory. I used my users/me/Library/ folder, and put robh's perl script in there too, but with a little modification: Replace the part where he kills the finder by process id, with a call to the applescript like so: # call applescript to restart finder print STDERR `open /Users/username/Library/finder_restart_applescript`; Save this new script, chmod it so it's owner executable (chmod u+x scriptfile.pl), and set up a cron to run it (I cheated and used the CronniX app, which is a nice front end, look for it on versiontracker), and there you go! This does forcibly quit the finder, so if you knew more applescript, you could have it throw up a warning to the user, or else just schedule it for three in the morning! -kevin |
SearchFrom our Sponsor...Latest Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2013 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.09 seconds |
|