Re: display as text anomaly
Re: display as text anomaly
- Subject: Re: display as text anomaly
- From: Shane Stanley <email@hidden>
- Date: Sun, 30 Apr 2017 10:42:17 +1000
On 30 Apr 2017, at 8:34 am, Paul Scott <email@hidden> wrote:
>
> What am I doing wrong?
You're trying to coerce an AS term to a string. It works in an editor because the editor has the application's dictionary open, so it knows what kVdT stands for. But when you run it from iTunes, the dictionary is not needed and therefore not loaded.
You need to do something like:
set theKind to sel's media kind
if theKind = TV show then
set theKind to "TV show"
else if...
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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