• 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: How do you test if a property is empty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you test if a property is empty


  • Subject: Re: How do you test if a property is empty
  • From: Paul Taylor <email@hidden>
  • Date: Mon, 19 Jan 2009 18:30:17 +0000

Stockly, Ed wrote:
It depends on the property, and they best way to find out is to ask the
property from a script and log the result. In some cases the result will be:
"" in others: {} and many (this case) it will be: missing value.

Here's an example:
-------
tell application "iTunes"
set myTrack to file track 4 of playlist 4 of source 1
log played date of myTrack
if played date of myTrack is missing value then
--do that stuff
else
--do that other stuff
end if
end tell
I realise when I originally tried this to do this I just compared to 'missing' rather then 'missing value' , this seems to be the nearest solution

thanks Paul
_______________________________________________
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: How do you test if a property is empty
      • From: Paul Taylor <email@hidden>
References: 
 >RE: How do you test if a property is empty (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: RE: How do you test if a property is empty
  • Next by Date: Re: How do you test if a property is empty
  • Previous by thread: RE: How do you test if a property is empty
  • Next by thread: Re: How do you test if a property is empty
  • Index(es):
    • Date
    • Thread