|
|
Use launchd to replace folder actions
Why not just add the deletion if the .DS_Store file to the end of the shell script launchd calls? Something like:
Use launchd to replace folder actions
Nice hint. I discovered two things when I tried it out:
1) You should probably use WatchPaths instead of QueueDirectories to prevent an endless loop and also (I think) eliminate the problem with .DS_Store files. When I tried a simple folder action--making a file's label turn red when put in the target folder--with QueueDirectories, my CPU use jacked way up and never came down. Using WatchPaths instead solved the problem. 2) You can call an AppleScript directly--instead of having a shell script call an AppleScript--by putting this in your .plist file: <key>Program</key> <string>/usr/bin/osascript</string> <key>ProgramArguments</key> <array> <string>osascript</string> <string>/Users/foo/path/to/myscript.scpt</string> </array> Lots more info at http://www.afp548.com/article.php?story=20050620071558293 --Thanks |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.49 seconds |
|