• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Delete Bug or Feature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete Bug or Feature?


  • Subject: Re: Delete Bug or Feature?
  • From: Doug Adams <email@hidden>
  • Date: Tue, 12 Feb 2008 10:22:22 -0500


[...] Today I noticed that
when doing a delete from library playlist 1, the track was not only
removed from iTunes but its file was moved to the Trash! [...]

If this is how delete works now, then there is no way to remove a
track from iTunes via AppleScript and subsequently keep its file

I haven't tested, but I'd say the logical approach would be to, before
deletion, ask iTunes for the track file's location, ensure that you store
that as an alias, then delete the track from iTunes, then script Finder to
move the file to wherever you want it.

I have tested. In all versions previous to iTunes 7.6, using delete to remove a file from the main library (library playlist 1) merely removed the track from iTunes. In order to Trash or actually delete the file, a separate command, such as a Finder delete or Unix rm would be required using a track's location property. As of iTunes 7.6, using delete to remove a track from library playlist 1 will also move the tracks file to the Trash. This is not the expected behavior. Consequently, there is no way to preserve a track's file--that is, keep it from going to the Trash--if all you want to do is remove the track from iTunes.


--
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
  • Follow-Ups:
    • Re: Delete Bug or Feature?
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: InDesign postscript question
  • Next by Date: Re: Delete Bug or Feature?
  • Previous by thread: Re: Delete Bug or Feature?
  • Next by thread: Re: Delete Bug or Feature?
  • Index(es):
    • Date
    • Thread