• 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: display as text anomaly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: display as text anomaly
      • From: Paul Scott <email@hidden>
References: 
 >display as text anomaly (From: Paul Scott <email@hidden>)

  • Prev by Date: Re: Copying the path of files selected in Finder
  • Next by Date: Re: display as text anomaly
  • Previous by thread: display as text anomaly
  • Next by thread: Re: display as text anomaly
  • Index(es):
    • Date
    • Thread