• 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: error 10
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error 10


  • Subject: Re: error 10
  • From: Oz Springs <email@hidden>
  • Date: Sun, 31 Aug 2003 09:52:39 +0100

At 09:36 +0100 31/8/03, John Delacour wrote:
>
>
>tell app "Safari" to tell the front document
> set AppleScript's text item delimiters to "/"
> set _doc to last text item of (get its URL)
> set AppleScript's text item delimiters to ""
> set f to (path to desktop as Unicode text) & _doc
> save in file f
>end
>
>where 'front document' is the object of 'save'. In your changed version
>you would need to write 'save front document...'
>
John:
re: save in file f

I get error 10 when simply running your script on this line, depending on what I am using. Script Debugger tells me error 10, Smile & Script Editor says:

"Safari got an error:
NSCannotCreateScriptCommandError"

Also "Save" and "in" stay blue while all the "Set"s and "to"s on the other lines go bold red when the script is compiled.

In my (so far vain) attempts to work AppleScript out myself I have tried a few variations, but none of them have worked either.

Kind regards



Oz
_______________________________________________
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.

  • Follow-Ups:
    • Re: error 10
      • From: John Delacour <email@hidden>
References: 
 >error 10 (From: Van Brollini <email@hidden>)
 >Re: error 10 (From: John Delacour <email@hidden>)

  • Prev by Date: Re: error 10
  • Next by Date: Re: Renaming files in Finder: why so slow?
  • Previous by thread: Re: error 10
  • Next by thread: Re: error 10
  • Index(es):
    • Date
    • Thread