• 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: John Delacour <email@hidden>
  • Date: Sun, 31 Aug 2003 09:36:38 +0100
  • Mac-eudora-version: 6.1a1

At 6:31 pm -0700 30/8/03, Van Brollini wrote:
tell application "Safari"
set t to name of window 1
set AppleScript's text item delimiters to "/"
set s to URL of document 1
set _doc to last text item of s
set r to text of document 1
set AppleScript's text item delimiters to ""
set f to "users/vanbroll/Desktop/temp/" & _doc
save in file f
delay 0.5

can anyone tell me why I get an error 10 and what it is at the save in
file f?


You have given no parameter for the save command. The script I gave you was


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...'



You can also do this:


do shell script "cd; cd Desktop;
curl -o scripting.html http://www.scripting.com";

JD



.
_______________________________________________
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: Oz Springs <email@hidden>
References: 
 >error 10 (From: Van Brollini <email@hidden>)

  • Prev by Date: Clipboard questions
  • Next by Date: Re: error 10
  • Previous by thread: error 10
  • Next by thread: Re: error 10
  • Index(es):
    • Date
    • Thread