|
|
Make Command-Delete do more with Quicksilver
The other nice thing about this is that you can customize it on a per application basis. For example, I've set it up so that selecting songs in iTunes and then pressing command-delete automatically removes the track from the iTunes library and sends the corresponding file to the trash. See below.
tell application "Finder" if frontmost then set selected_items to selection repeat with i in selected_items set k to i's kind if k = "Application" then open i using application file id "com.apple.AppDelete" else if k = "Volume" then eject i else move i to trash end if end repeat else my CheckApp(item 1 of (every process where frontmost of it = true)) end if end tell on CheckApp(frontmost_application) set app_name to frontmost_application's displayed name if app_name = "iTunes" then tell application "iTunes" set l to selection repeat with i in l do shell script "mv " & quoted form of POSIX path of ((get location of i) as string) & " " & quoted form of POSIX path of (path to trash) delete (some track of library playlist 1 whose database ID is (get database ID of i)) end repeat end tell else -- put other application instructions here end if end CheckApp |
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.07 seconds |
|