Question for Paul and other AppleScripters

From: Robert Barrimond (robert_at_barrimond.com)
Date: 08/15/04


Date: Sun, 15 Aug 2004 12:51:22 -0400

I'm new to AppleScript and have been enjoying the learning experience,
however, I've run into a frustrating stumbling block.

First the context. I'm writing a script to do batch edits on my contacts.
For example, I'd like to use some of the custom fields and need to a
convenient way to edit these values for many, many contacts at one time.

Now the problem. I can't seem to programmatically inspect either the
contact objects or use a reference to to loop through the list of selected
contacts to edit the property the user chooses by a "choose from list" of
strings. My first strategy was to try to access the properties of the
contact objects by converting the user chosen string into a property label
for each selected contact. I couldn't find a way to do this. My second
strategy was to use a reference to create a reference that I would loop
through the contacts and then access the properties of each contact
indirectly. I also failed to make that happen. Either of these I had hoped
would allow me to write a subroutine to handle the actual looping and
editing. This would be trivial in Java, I hope AppleScript isn't forcing me
to commit the Greatest Programming Sin of All: repeat code that should be a
method/function/subroutine.



Relevant Pages

  • Re: Modules(index) and Modules("name") return different modules?
    ... You can edit the code in a referenced MDB, ... are discarded *without warning* when you close. ... >> module in every library database reference. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Update a table using a form
    ... I have the properties set as you advised. ... when you open the form the "reference number" ... Access will give you a Sub and End Sub line; edit it to ...
    (microsoft.public.access.formscoding)
  • Re: change excel document into word document
    ... ' requires a reference to the Word Object library: ... Set wdApp = New Word.Application ... Set wdDoc = Nothing ... Edit> Copy ...
    (microsoft.public.excel.misc)
  • Variety of XML questions;
    ... parents affect the reference? ... (Does parsing create the node instances, or just parses the XML into ... Bearing encapsulation and concurrency in mind, ... changes to a node copy the node, edit, then replace the node in the original ...
    (microsoft.public.dotnet.xml)
  • Re: AppleScript Reference Guide for Entourage
    ... AppleScript language syntax, and is in the the AppleScript Language Guide ... This is due to a quirk of Entourage ... AppleScript Reference Guide for Entourage ... Excel and PPT 2004 is rooted in the same object model ...
    (microsoft.public.mac.office.entourage)