I can't get the correct syntax for this filter
I can't get the correct syntax for this filter
- Subject: I can't get the correct syntax for this filter
- From: Skeeve <email@hidden>
- Date: Wed, 20 Aug 2008 22:15:37 +0200
The following script should get, from my iTunes Music Library.xml, every
property list item of the current selection.
tell application "iTunes"
set sel to get selection of front browser window
set dbis to {}
repeat with tr in sel
copy (database ID of tr) as string to the end of dbis
end repeat
end tell
set itf to "/Users/skeeve/Music/iTunes/iTunes Music Library.xml"
set res to {}
tell application "System Events"
set plif to property list file itf
tell plif
tell property list item "Tracks"
-- this test works
set res to every property list item whose name is some item
of dbis
-- this one not
-- set res to every property list item whose name is in dbis
end tell
end tell
end tell
res
The apple event executed is
get every property list item
of property list item "Tracks"
of property list file "...:iTunes Music Library.xml"
whose {"89104", "89110", "89098", "89265", "89328"} contains name
and not the expected
get every property list item
of property list item "Tracks"
of property list file "...:iTunes Music Library.xml"
whose name is in {"89104", "89110", "89098", "89265", "89328"}
Can I do something about it?
_______________________________________________
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