Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Tweak | 10 comments | Create New Account
Click here to return to the 'Tweak' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Tweak
Authored by: cfoster on Feb 01, '05 11:26:04AM

Replace the first line with these two to have it work for any user:

tell application "Finder" to set boot_volume to name of startup disk as text set pathToRecentItemsFolder to boot_volume & ":Users:" & (do shell script "whoami") & ":Library:Recent Items:"

[ Reply to This | # ]
Tweak
Authored by: hopper on Feb 01, '05 03:57:57PM

we're getting there, but now I get an error "the variable aliasList is not defined" in the line

repeat with counter3 from 1 to (number of items in aliasList)



[ Reply to This | # ]
Re: Tweak
Authored by: joshelgin on Feb 02, '05 12:23:03PM

Try running the script without the "remove_old" part first, to get the list of files into the folder. Then run the "remove_old" part again...



[ Reply to This | # ]
Tweak
Authored by: joshelgin on Feb 02, '05 12:25:40PM

...or move the "end try" below the "end repeat" in the "remove_old" handler.



[ Reply to This | # ]