• 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: Shane Stanley <email@hidden>
  • Date: Wed, 16 Apr 2003 08:38:43 +1000

On 16/4/03 7:28 AM +1000, Paul Berkowitz, email@hidden, wrote:

> When I got fed up with this, I substituted 'application "System Events"' for
> 'application "Finder"' when all the terms were in the System Events
> dictionary. Those compiled just fine. But when I try to run the script I get
> a "NSCannotCreateScriptCommand" error on 'disk' and 'folder'.
>
> That indicates to me that the terms in "Disk - Folder - File" Suite in the
> System Events dictionary don't function (yet) although they compile. Or is
> it just me?

FWIW, I tried some time ago to use SE instead of the Finder for some stuff,
and found it failed. This was both before and after installing the 1.2 beta.
But I can't remember the exact error -- my vague recollection is that there
was none, but nothing happened, either.

Let me try again:

set x to "Macintosh HD:BV receipt.pdf"
set y to "Macintosh HD:Users:shane:Documents:Jobs:Bikes:"
tell application "System Events"
move file x to folder y -- appears in log but nothing happens
duplicate file x -- error type 10
move file x to folder y -- error type 6
end tell

There's life in the old Finder yet...

--
Shane Stanley, email@hidden
_______________________________________________
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: Strange goings-on
  • Next by Date: Re: Getting the labels of a record
  • Previous by thread: Re: Strange goings-on
  • Next by thread: Re: Strange goings-on
  • Index(es):
    • Date
    • Thread