• 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: Barry Wainwright <email@hidden>
  • Date: Mon, 19 Jan 2009 16:57:34 +0000


On 19 Jan 2009, at 16:17, Paul Taylor wrote:

Hi how do you test if a property is empty, Im trying to copy a value from one object to another but its fail if the property has not been set in the original object , Ive tried variuos checks such as is empty, !=, is missing and none of them have worked
(or compiled in most cases)


if(played date of orig_track is not empty)
set played_date_val to played date  of orig_track
set played date  of new_track to played_date_va;
end if


try get played date of orig_track set played_date_val to played date of orig_track set played date of new_track to played_date_val end try

if there is no 'played date' of orig_track an error will be triggered and programme execution will continue from after the 'end error' statement. If there is a value to be 'got', then the property assignments will be executed.

--
Barry

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

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