Re: {default:1} compiles to {default item:1}?
Re: {default:1} compiles to {default item:1}?
- Subject: Re: {default:1} compiles to {default item:1}?
- From: John Delacour <email@hidden>
- Date: Thu, 6 Mar 2003 20:56:06 +0000
- Mac-eudora-version: 6.0a9
At 8:59 pm +0100 6/3/03, Brennan wrote:
Just discovered this:
set a to {default:1}
When I compile this, the script text turns into
set a to {default item:1}
I can still pull out the value 1 using 'default of a', but I wondered if
anyone can tell me what's the thinking behind this mutation?
Is there some special wacky feature pertaining to 'default item'?
The only other special case record property I know of is 'class', which
overrides 'class of whateverRecord'....
You must be scoping some weird osax or working in some weird tell
block. It should not happen. Thisd works fine OMM:
set a to {default:1, class:"cabbage", application:"x", window:67}
a's {default, class, application, window}
--> {1, "cabbage", "x", 67}
Try 'tell me to ....' and see if that gets them out of scope.
JD
_______________________________________________
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.