• 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: Source Text of Script Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Source Text of Script Objects


  • Subject: Re: Source Text of Script Objects
  • From: "Jason W. Bruce" <email@hidden>
  • Date: Sun, 30 Dec 2001 16:05:22 +0000

Paul,

I'm still on 9.04, so my result is likely the result of an invisible
coercion, either Jon's or Akua.

Jason Bruce


> Well, thanks, Jason, but it doesn't work as I tried it.
>
> Script Debugger is able to get a script handler from a script document, and
> its class is <<script>>. When I try this:
>
> set md to script handler "makedaily" of document 2
>
> set mdText to md as record
>
> I get an error "Can't make handler MakeDaily into a record".
>
> Similarly if I load the whole script and try that:
>
>
> set ciF to file spec of document 2
> -- file "Data HD:Documents:Microsoft User Data:Entourage Script Menu
> Items:Calendar Import into 2001"
>
> set ci to load script ciF
> -- << script>>
>
> set ciText to ci as record
> -- ERROR: "Can't make <<script>> into a record"
>
>
> Are you sure about this? Whose "record" is this that you have got somewhere?
> Could it perhaps be something other than an AppleScript record?
>
>
> --
> Paul Berkowitz


  • Prev by Date: Re: [META] proper use of mailing list (was RE: Capturing current handler name in a string variable)
  • Next by Date: Re: [META] proper use of mailing list (was RE: Capturing current handler name in a string variable)
  • Previous by thread: Re: Source Text of Script Objects
  • Next by thread: Re: Source Text of Script Objects
  • Index(es):
    • Date
    • Thread