RE: DS Store
RE: DS Store
- Subject: RE: DS Store
- From: Marc Glasgow <email@hidden>
- Date: Fri, 14 Aug 2009 02:36:37 -0400
I'm coming in late on this one and not sure I saw all the threads/
posts for it, but I do a lot of file manipulation in many of my
scripts. Here's what works for me (a direct example from a script that
clears out cache/cookie/history files):
Tell Finder
set PrefPath to path to preferences from user domain as text
set PathToUserLibrary to text 1 thru -13 of PrefPath as text
set PathToFireFoxStorage to PathToUserLibrary & "Application
Support:Firefox:Profiles:"
if folder PathToFireFoxStorage exists then
set ListOFiles to list folder PathToFireFoxStorage without
invisibles
-- do whatever (copy/move to trash/etc)
end if
End Tell
Then do the empty-trash (if desired) in a separate "Tell Finder" block
afterwards, otherwise you may end up invoking the empty trash prior to
the file-movements being finished.
NOTEL If you're not using Jon's commands, you might want to look at it
as a way of making some of the tasks easier.
Cheers
=-= Marc Glasgow
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden