• 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: Scripting iCal. 10.4 and 10.5 UID's incompatible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting iCal. 10.4 and 10.5 UID's incompatible?


  • Subject: Re: Scripting iCal. 10.4 and 10.5 UID's incompatible?
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 30 Oct 2007 14:23:41 -0700
  • Thread-topic: Scripting iCal. 10.4 and 10.5 UID's incompatible?

On 10/30/07 1:04 PM, "John M" <email@hidden> wrote:


> Hi Paul & Loren,
>
> Thanks for your responses.
>
>>> Set u to «wr10» of thisEvent
>>>
>>> (FYI those delimiter marks are typed with opt-\ and opt-shitft-\)
>>>
>>
>> set u to «property wr10» of thisEvent
>
> It should be:
>
>     set u to «class wr10» of thisEvent
>
> The UID property in Leopard is:
>
>     «class ID  »
>
> As Paul says with two spaces after the ID
>
> I still don't understand why it wasn't made compatible. Very
> frustrating!
>

Actually, as has and I wrote, you will probably find that you really need

    «property ID  »

not «class ID  » even though it decompiles (appears) as «class ID  »

It's one of those annoying things. Actually this one will always appear as
'id' (or maybe 'uid' in Leopard) and will work. The problem will be with the
other one - «property wr10 » that will decompile as «class wr10 » on a
Leopard machine or partition (and 'uid' on  Tiger one). If you ever have to
recompile (edit and compile again) the script on a Leopard machine, the
«class wr10 » will balk, and you will manually have to re-type 'property'.

--
Paul Berkowitz


 _______________________________________________
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: 
 >Re: Scripting iCal. 10.4 and 10.5 UID's incompatible? (From: John M <email@hidden>)

  • Prev by Date: Re: Scripting iCal. 10.4 and 10.5 UID's incompatible?
  • Next by Date: (no subject)
  • Previous by thread: Re: Scripting iCal. 10.4 and 10.5 UID's incompatible?
  • Next by thread: Where's the updated AppleScript Language Guide?
  • Index(es):
    • Date
    • Thread