MACSCRPT Archives

November 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 27 Nov 2009 10:07:20 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
You need to put those commands inside the tell block.

package folder is from the System Events dictionary and as a two-word record label and it will only work within the application tell

HTH,

ES


tell application "System Events"
  set myProps to properties of foo
  visible of myProps
  package folder of myProps
end tell

On Nov 27, 2009, at 7:33am, Emmett Gray wrote:

> Is this a bug? Trying this in 10.6.2
> 
> tell application System Events to set myProps to properties of alias foo
> visible of myProps > true/false
> package folder of myProps > "Can't get" error
> Other properties seem randomly accessible or not: busy status, stationery don't work either; all text properties seem OK.
> 
> However:
> tell application System Events to set isPkg to package folder of alias foo
> isPkg > true/false
> and so too for busy status, stationery, etc. when retrieved one-at-a-time
> 
> TIA

ATOM RSS1 RSS2