Re: Delete Bug or Feature?
Re: Delete Bug or Feature?
- Subject: Re: Delete Bug or Feature?
- From: Doug Adams <email@hidden>
- Date: Tue, 12 Feb 2008 12:42:52 -0500
On Feb 12, 2008, at 12:37 PM, Ed Stockly wrote:
I'd try something like this:
Move (or even copy) the file to temp items, then delete it, them
move it back into place
tell application "iTunes"
set myTrack to item 1 of the selection
set trackFile to location of myTrack
end tell
tell application "Finder"
set fileLocation to (container of trackFile) as alias
set holding to path to temporary items as alias
set tempHold to move trackFile to holding
tell application "iTunes" to delete myTrack
move tempHold to fileLocation
end tell
HTH,
ES
On Feb 11, 2008, at 7:39 PM, Doug Adams wrote:
There is no way to remove a track from iTunes via AppleScript and
subsequently keep its file, which is an option when you manually
delete a track using the Delete key.
That's an OK workaround, and one that had occurred to me, but rather
cumbersome what with all the moving of files. This is a bug with
iTunes that should be fixed.
--
Doug's AppleScripts for iTunes
http://dougscripts.com/itunes/
_______________________________________________
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