Re: Strange goings-on
Re: Strange goings-on
- Subject: Re: Strange goings-on
- From: Michelle Steiner <email@hidden>
- Date: Tue, 15 Apr 2003 15:27:36 -0700
On Tuesday, April 15, 2003, at 02:28 PM, Paul Berkowitz wrote:
Could someone in OS 10.2.4 or 10.2.5 but who has _not_ installed the
beta
System Events 1.2 (for UI scripting) please take a look and see if you
have
a "Disk - Folder - File" Suite in the System Events dictionary?
Yes, it is there.
If so, does
it work? Can you script disks, folders and files here, as in the
Finder and
run the script OK? How about others who _do_ have the beta 1.2
installed?
tell application "System Events"
make new folder with properties {name:"delete me"} at disk 1
end tell
--> +class ; "delete me" of application "System Events"
but no folder is created.
If I replace "folder" with "file" the result is the same.
tell application "System Events"
move (folder "aaa" of disk 1) to the (path to the desktop)
end tell
If the folder exists:
--> tell application "System Events"
path to desktop
+event ascrgdut;
{}
path to desktop
alias "Dora:Users:michelle:Desktop:"
move folder "aaa" of disk 1 to alias "Dora:Users:michelle:Desktop:"
"System Events got an error: NSInternalScriptError"
If the folder doesn't exist:
--> tell application "System Events"
path to desktop
alias "Dora:Users:michelle:Desktop:"
move folder "aaa" of disk 1 to alias "Dora:Users:michelle:Desktop:"
end tell
Note that there is no error generated.
Hope this helps,
--Michelle
--
"Beware the march of ideas."
_______________________________________________
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.