Re: Is this a major bug or not?
Re: Is this a major bug or not?
- Subject: Re: Is this a major bug or not?
- From: Deivy Marck Petrescu <email@hidden>
- Date: Sun, 31 May 2009 10:50:09 -0400
On May 31, 2009, at 10:34, Yvan KOENIG wrote:
tell application "AppleWorks 6"
set props to (get properties of document 1)
log class of props
end tell
Yvan,
the only problem is your insistence in using Apple Apps.
AppleWorks is a subsidiary. TextEdit and Mail are Apple's.
If you use another application it really returns what g is, a record:
tell application "BBEdit"
set props to (get properties of document 1)
log class of props
end tell
Log:
tell application "BBEdit"
get properties of document 1
{id:1358154, container:current application, modified:true,
modifiable:true, modification date:date "Sunday, May 31, 2009 10:42:17
AM", name:"untitled text", on disk:false, file:missing value, creator
type:"R*ch", window:text window 1, container web site:missing value,
text encoding:"Unicodeā¢ (UTF-8, no BOM)", FTP Info:missing value, is
FTP:false, line breaks:Unix, source language:"(none)", state
modified:false, URL:missing value, contents:""
(*record*) <------ see!
end tell
Try it yourself.
And the problem which you seem not to understand is that your "g" or
"props" will cease to work outside the tell block, which might not be
good.
You can always overcame this problem, but it is a problem.
Deivy Petrescu
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden