Hi
Are folder actions still working under Lion and Mountain Lion? Checked all (?) settings more than once.
Regards
Lazy
Hi
Are folder actions still working under Lion and Mountain Lion? Checked all (?) settings more than once.
Regards
Lazy
What’s your exact problem.
Here the feature behave flawlessly.
Yvan KOENIG (VALLAURIS, France) dimanche 5 août 2012 18:56:48
I define a folder and an applescript which deletes everything i put into the folder.
worked excellent up to now. now it just does’nt happen anything. in lion as well as in mountain lion.
Here, this simple script behave flawlessly.
property useFinder : false
-- set this_folder to (path to desktop as text) & "Lazybear:" (* used for tests *)
on adding folder items to this_folder after receiving these_items
(*
these_items is a list of alias
To get rid of possible failure, I don't treat the added items but every files available in the folder.
*)
if useFinder then
tell application "Finder"
set the_files to every file of this_folder
repeat with aFile in the_files
delete aFile
end repeat
end tell
else
(*
Use System Events so the files aren't moved to the trash
*)
set this_folder to this_folder as text
tell application "System Events"
set the_files to path of every disk item of folder this_folder whose visible is true
repeat with aFile in the_files
delete disk item (aFile as text)
end repeat
end tell
end if
end adding folder items to
Yvan KOENIG (VALLAURIS, France) lundi 6 août 2012 12:07:26
Hi Yvan
Your script works excellent. I’ll study your code. Thanks you
Lazy
i am having troubles with folder actions in mountain lion i am using 10.8.1 and i try to enable a simple folder action like alert and it does not work i see there are a ton of people out there with this same issue is there any fix to it that will fix it from not working?
Try delete
com.apple.FolderActions.plist and
com.apple.FolderActionsSetup.plist
in your user prefs folder.
Those may have become corrupted…