• 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: Ed Stockly <email@hidden>
  • Date: Fri, 20 Feb 2009 08:13:31 -0800

>>if(played date of orig_track is not empty)

Empty doesn't work in this case. You want missing value

Try this instead:

tell application "iTunes"
   set orig_track to current track
   if (played date of orig_track is not missing value) then
       set played_date_val to played date of orig_track
       set played date of new_track to played_date_val
   end if
end tell



hth,

ES
_______________________________________________
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
  • Prev by Date: RE: Mount volume
  • Next by Date: Re: Another numbers bug
  • Previous by thread: Re: Out of the office on Sep 18 2008
  • Next by thread: Mount AFP if Not already?
  • Index(es):
    • Date
    • Thread