• 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: Palm Desktop 4.1 (creating a memo)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Palm Desktop 4.1 (creating a memo)


  • Subject: Re: Palm Desktop 4.1 (creating a memo)
  • From: Chris Page <email@hidden>
  • Date: Thu, 1 May 2003 01:42:12 -0700

On Wednesday, Apr 30, 2003, at 23:47 US/Pacific, Paul Berkowitz wrote:

Ah, I forgot it was in a subsidiary tell block. What happens if you add
'its':

tell application "Palm Desktop"
set newMemo to make new memo
tell newMemo
set its title to "test"
set its contents to "this is cool" -- ??
end tell
end tell

Nope. Still get an error. The following version works, and I might argue it is strictly more correct given that the variable contains a reference:

tell application "Palm Desktop"
set newMemo to make new memo
tell the contents of newMemo
set title to "test"
set contents to "this is cool"
end tell
end tell

I think this is an odd corner of AppleScript. I'd almost expect it always require an intermediate 'contents of' to access the property of a target object. It seems a little magical to me that the 'contents' property refers to the reference itself, but other properties refer to that property of the target object of the reference.

--
Chris Page - Software Wrangler - Palm, Inc.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Palm Desktop 4.1 (creating a memo)
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Palm Desktop 4.1 (creating a memo)
  • Next by Date: Re: Sorting files, making folders
  • Previous by thread: Re: Palm Desktop 4.1 (creating a memo)
  • Next by thread: Re: Palm Desktop 4.1 (creating a memo)
  • Index(es):
    • Date
    • Thread