iLounge 2013 iPhone + iPod Buyers' Guide
Become a member of the iLounge Forums. Register Now!
To start viewing messages, select the forum that you want to visit from the selection below.
If this is your first visit, be sure to check out the Forum FAQ and Forum Policy.

Topic: updating track info from external db

Reply Thread Tools Topic Search
 
Old 09-04-2010, 01:11 PM
#1
 
Freshman Lounger
 
Join Date: Sep 2010
Posts: 2
updating track info from external db

I use XBMC for my regular media management at home and itunes for the ipods/iphones.

i can query sqlite3 for the file locations of played tv shows into a list, but how do i iterate the list and compare video kind TV show and unplayed in itunes to change from true to false with applescript?
jwalton333 is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote

Join the iLounge Community and the ad above will disappear.

Old 09-04-2010, 04:26 PM
#2
 
Freshman Lounger
 
Join Date: Sep 2010
Posts: 2
update

I can get applescript to return the location of tracks for video kind is movie and unplayed is true but it doesn't work for video kind is TV show. I am running iTunes 10

# this works
tell application "iTunes"
set filesTowatched to (get location of tracks where (video kind is movie) and (unplayed is true))
log (filesToWatched)
end tell

# this does not
# I get this response
# applescript error: iTunes error: can't get location of every track whose video kind = TV show and unplayed = true
tell application "iTunes"
set filesTowatched to (get location of tracks where (video kind is TV show) and (unplayed is true))
log (filesTowatched
end tell
jwalton333 is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote

Topic: updating track info from external db

Reply Thread Tools Topic Search

Become a member of the iLounge Forums. Register Now!
To start viewing messages, select the forum that you want to visit from the selection below.
If this is your first visit, be sure to check out the Forum FAQ and Forum Policy.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oh so slow updating track info ... Humbro iTunes + Related Mac/PC Applications 4 11-21-2006 10:23 AM
Updating track info but not tracks themselves choomunga iPod classic & Legacy iPods 1 06-30-2005 10:44 AM
Info for AudioBooks - Track 01, Track 02 wonfuji AppleScripts for iTunes (Mac) 1 03-22-2005 02:11 PM
Updating song info WITHOUT updating MP3 ID3 Hitnrun iTunes + Related Mac/PC Applications 1 10-31-2004 10:16 AM
Request: "Track N of M for Remote Management: Edit Track Info? darkside AppleScripts for iTunes (Mac) 1 05-08-2004 08:54 AM




View iLounge History. Read our old Forums Archive (2001-2003)
All times are GMT -4. The time now is 03:58 AM.


Shop for Accessories: Cases, speakers, chargers, etc.