Re: Palm Desktop 4.1 (creating a memo)
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.