Home > Applescript Error > Hazel Applescript Error 1708

Hazel Applescript Error 1708

Registered: 2007-10-05 Posts: 5 Deleting in iTunes using a file path I'd like to delete a track from my iTunes library (and any playlist that might contain it) using Hazel. Hazel provides me a file path, but I suspect I'll need to http://macscripter.net/viewtopic.php?id=22726 convert this to a track in iTunes. I'm hoping to modify the following applescript. Anyone have any ideas?Thanks,DeshApplescript:on hazelProcessFile(infile) tell application "iTunes" try delete infile on error delete (first track of library playlist 1 whose database ID is (get database ID of infile)) end try end tell end hazelProcessFile Filed under: iTunes Offline #22007-10-05 03:37:09 applescript error am desh Member Registered: 2007-10-05 Posts: 5 Re: Deleting in iTunes using a file path Sorry for the duplicate posts, I'm unable to delete 2 of them since they don't appear to have any content.Moderator: Deleted. Offline #32007-10-05 12:37:03 pm Bruce Phillips Administrator Registered: 2004-07-15 Posts: 2649 Re: Deleting in iTunes using a file path What does the path from Hazel look like?Applescript:on hazelProcessFile(infile) tell application "iTunes" try hazel applescript error delete infile on error delete (first file track of library playlist 1 whose location is anAppleScriptAliasToTheFile) end try end tell end hazelProcessFile Filed under: iTunes Offline #42007-10-05 12:40:18 pm StefanK Member From: St. Gallen, Switzerland Registered: 2006-10-21 Posts: 11340 Website Re: Deleting in iTunes using a file path Hi,what's about deleting the track directly by the path (property location)Applescript:on hazelProcessFile(infile) tell application "iTunes" try delete (first track of library playlist 1 whose location is (infile as alias)) return true on error return false end try end tell end hazelProcessFileEdit: you got the point, Bruce Last edited by StefanK (2007-10-05 12:41:40 pm) regardsStefan Filed under: iTunes Offline #52007-10-05 02:09:15 pm desh Member Registered: 2007-10-05 Posts: 5 Re: Deleting in iTunes using a file path The error I'm getting back is:2007-10-05 12:02:08.703 hazelfolderwatch[926] 04 Len Tillem (Ep. 4).m4a: Rule Delete Old Radio Programming matched.2007-10-05 12:02:08.716 hazelfolderwatch[926] [Error] AppleScript failed: Error executing AppleScript /Users/Paula/Documents/Delete From iTunes (Hazel).scpt on file /Users/Paula/Music/iTunes/iTunes Music/Len Tillem/Unknown Album/04 Len Tillem (Ep. 4).m4a.2007-10-05 12:02:08.716 hazelfolderwatch[926] AppleScript error: { NSAppleScriptErrorBriefMessage = "Can't get database ID of alias \"Macintosh HD:Users:Paula:Music:iTunes:iTunes Music:Len Tillem:Unknown Album:04 Len Tillem (Ep. 4).m4a\"."; NSAppleScriptE

 

ipod touch error script commnand 1

Ipod Touch Error Script Commnand p post a blank message Please type your message and try again This discussion is locked Ninachka Level points Q HELP - Error in script command InstallApp I've just p Applescript Error Code p upgraded my ipod to a jailbroken and installed summerboard But whenever I applescript error want to add a new application i get the following message Error in script command InstallApp What do I've to p The Apple Event Handler Failed p do Toshiba satellite Windows Vista Posted on Mar PM I have this question too Close Q HELP - Error in

ipod touch error script command 1

Ipod Touch Error Script Command p post a blank message Please type your message and try again This discussion is locked Ninachka Level points Q HELP - Error in script command InstallApp I've just applescript error code upgraded my ipod to a jailbroken and installed summerboard But whenever I applescript error want to add a new application i get the following message Error in script command InstallApp What do I've to p The Apple Event Handler Failed p do Toshiba satellite Windows Vista Posted on Mar PM I have this question too Close Q HELP - Error in script command