• 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 15:16:37 +0100

At 11:01 +0100 31/8/03, John Delacour wrote:
>
>
>Try this *** with Event Log *** and tell me if/where it breaks.
>
>set d to "0"
>set _desk to path to desktop as Unicode text
>set f to _desk & (current date) - (get date d) & ".html"
>set _file to f as file specification
>tell application "Safari" to save document 1 in _file
>tell application "Finder"
> reveal _file
> activate
>end tell
>
>
>JD

at this point the script hangs and Safari crashes:

tell application "Safari" to save document 1 in _file

I think there is something wrong with the "save" part of this and maybe Safari hasn't implemented this part of AppleScript, even though it is in its dictionary. Script Debugger acknowledges "file" (file=file), but it just hovers over "save" without showing anything.
_______________________________________________
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>
    • Re: error 10
      • From: Paul Berkowitz <email@hidden>
References: 
 >error 10 (From: Van Brollini <email@hidden>)
 >Re: error 10 (From: John Delacour <email@hidden>)
 >Re: error 10 (From: Oz Springs <email@hidden>)
 >Re: error 10 (From: John Delacour <email@hidden>)

  • Prev by Date: Another weird happening in Smile
  • Next by Date: Re: Scripting the Location
  • Previous by thread: Re: error 10
  • Next by thread: Re: error 10
  • Index(es):
    • Date
    • Thread