Re: Examples or docs for (Tiger) system events XML Suite ?
Re: Examples or docs for (Tiger) system events XML Suite ?
- Subject: Re: Examples or docs for (Tiger) system events XML Suite ?
- From: "Steven D. Majewski" <email@hidden>
- Date: Fri, 20 May 2005 19:39:42 -0400
On May 20, 2005, at 6:51 PM, Shane Stanley wrote:
On 21/5/05 3:03 AM, "Steven D. Majewski" <email@hidden> wrote:
( or the property list suite ? )
For example:
set thePrefs to path to preferences folder from user domain as
Unicode text
set finderPlist to (thePrefs & "com.apple.finder.plist")
tell application "System Events"
set rootPropList to contents of property list file finderPlist
Thanks.
Looks like the problem I was having is that both 'property list file'
and 'xml file' need to be followed by a pathname string. I was trying
with a alias, which doesn't work. Coercing to a string fixes it:
tell application "System Events" to get contents of property list
file (ixml as string)
I blamed the missing type hints on the new style dictionary display
of Tiger's script
editor, but when I look at the Finder dictionary, they are still
there, so it looks
like it's just that they neglected to put those hints into the system
events dictionary
for the new suites.
-- Steve Majewski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden