Title: Question about scripting
Since I am still in the market for a script to connect Palm Desktop and Entourage, and am not a scripting expert, I hope someone (that is, one of you scripting experts) could answer the following:

In Palm Desktop, to objects are alledgedly defined as follows:

Class PhoneRec: phone number record of a contact
Properties:
    
phone label  reference  -- phone label of the PhoneRec record of a contact
    
formatted number
 international text  -- phone number (formatted) of the PhoneRec record of a contact
    
raw number
 international text  -- phone number (as it is stored in the database) of the PhoneRec record of a contact
    
extension
 international text  -- phone text of the PhoneRec record of a contact
    
instant organizer menu
 boolean  -- whether or not the phone is in the Instant Organizer menu
    
full phone
 international text  [r/o]  -- full phone of the PhoneRec record of a contact
    
dial string  international text  [r/o]  -- string that’s used for dialing the phone number of the PhoneRec record of a contact

Class phone label: A phone label
Properties:
    
object id  record  [r/o]  -- the object id of the phone label
    
title  international text  -- title of the phone label

Now, I would expect that I should be able to get the phone label title of the  phone record as follows:

Set theLabel to title of  phone label of phoneRecord

Where phoneRecord is an object of class PhoneRec. However this does not seem to work, and I get an error dialog indicating expected end of line but found identifier (pointing at label). Other variations will sometimes get an error dialog which displays the phoneRec with the first item shown as a phone label. Interestingly, the label shown is not the label used for that record in the application, which leads to another question – just how accurate is the dictionary shown by the Script Editor dictionary window? The phone label object does contain the correct labels....

Eric Hildum
Director, CTC Business Unit
Itochu Technology Inc.
3100 Patrick Henry Drive
Santa Clara, CA 95054-1850 USA
Tel: +1-408-653-2818
Fax: +1-408-727-4619
伊藤忠テクノサイエンス株式会社
プロダクトマネージメント部
ヒルダム エリック
Note: Attached files may be compressed. A free decompression utility is available from:
http://www.aladdinsys.com/expander/index.html
http://stuffit.act2.co.jp/download/index.html

Reply via email to