• 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
Ed Lai's 'cast' osax lost in conversion from OS 9 to OS X - any ideas?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ed Lai's 'cast' osax lost in conversion from OS 9 to OS X - any ideas?


  • Subject: Ed Lai's 'cast' osax lost in conversion from OS 9 to OS X - any ideas?
  • From: Phillip Apley <email@hidden>
  • Date: Wed, 15 Dec 2004 12:34:58 -0500

Title: Ed Lai's 'cast' osax lost in conversion from OS 9 to OS X - any ideas?
I wanted to use the sample code provided by Now Software for Now Up-to-Date and Contact (NUDC)  below. Only after installing Ed Lai’s Programmer’s Tool 1.0a10 under OS X 10.3 did I realize that Programmer’s Tool was an OS 9 osax and is not compatible. Does anyone know of something else that will allow me to cast a contactlink to an integer?

Bill Cheeseman, who wrote the original code for Now Software had this to say (hope you don’t mind my broadcasting our personal communication, Bill):

on 12/14/04 4:23 PM, Bill Cheeseman at (hidden) wrote:

> Some of the Mac OS X all-purpose
> scripting additions might have a command that takes an arbitrary memory area
> and interprets it as a specific data type (which is what Programmer's Tool's
> 'cast' command does).
>
> Also, I vaguely recall some chatter on the AppleScript-Users mailing list a
> few months ago about Mac OS X substitutes for Programmer's Tool, so you
> might try searching the archives.

Does this ring a bell with anyone?

I tried to search applescript-users, but there doesn’t seem to be a searchable archive. It also seems that the Sherlock plugins for searching osaxen packages, additions, and commands on MacScripter.Net are not compatible with Sherlock 3, and I can’t even figure out how to determine whether particular osaxen are OS X compatible.

-- Sample Code --

    -- One free third-party scripting addition that can be used to convert a contactlink property
   -- value to an integer value corresponding to the unique id of the linked Now Contact person object is
   -- Ed Lai's Programmer's Tool scripting addition. The latest version at this writing is 1.0a10. It may
   -- be downloaded from MacScripter.net at www.osaxen.com/?id=programmers_tool. It can also be
   -- obtained directly from the osax folder of Ed Lai's iDisk if you go to Apple's iTools web site at
   -- itools.mac.com/WebObjects/Tools.woa, click on "iDisk", type "lai" into the "Open Public Folder"
   -- field and click the "Open Public Folder" button. Ed Lai's Public Folder will be mounted on your
   -- desktop if you have installed Apple's iTools software, and you can drag the Programmer's Tool
   -- scripting addition from there onto your desktop. To use it, you must drag it onto your closed System
   -- Folder and allow it to be moved to your Scripting Additions folder. Use its 'cast' command to convert
   -- the contactlink field to an integer, then use that integer as the unique id of the linked person
   -- in Now Contact:
   
    tell application "Now Up-to-Date - OS X"
        tell event 1 of category 1 of document 1
            get contactlink of person 1
            «event sysoCAST» result given «class TO  »:integer -- requires Ed Lai's Programmer's Tool scripting addition
       end tell
       set NCpersonID to result
   end tell


--
Phillip G. Apley
Critical Engineering Associates
34 Ridgemont Street
Allston, MA 02134
cel: 617-283-1717
fax: 617-787-1082
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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Ed Lai's 'cast' osax lost in conversion from OS 9 to OS X - any ideas?
      • From: jj <email@hidden>
  • Prev by Date: Re: Frank Macleod/QNM Markham/QW1/CA is out of the office.
  • Next by Date: Re: Delay x return, how reliable, fast or slow is Applescript?
  • Previous by thread: Making a command-line-called app come to the foreground
  • Next by thread: Re: Ed Lai's 'cast' osax lost in conversion from OS 9 to OS X - any ideas?
  • Index(es):
    • Date
    • Thread