• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange goings-on
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Strange goings-on (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: RE: Quark 5 script issues?
  • Next by Date: Re: Strange goings-on
  • Previous by thread: Strange goings-on
  • Next by thread: Re: Strange goings-on
  • Index(es):
    • Date
    • Thread