Re: How do you test if a property is empty
Re: How do you test if a property is empty
- Subject: Re: How do you test if a property is empty
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 19 Jan 2009 15:34:28 -0500
I believe something like this should work in general, not just for
iTunes tracks:
set current_val to the missing value
try
set current_val to some_prop of some_object
end try
if current_val is the missing value then
-- it wasn't set
else
-- it was set
end if
On 1/19/09, Paul Taylor <email@hidden> wrote:
>
>> 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
> oops I meant 'neatest' solution
> _______________________________________________
> 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
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <email@hidden>
_______________________________________________
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