• 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: Store Script Madness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Store Script Madness


  • Subject: Re: Store Script Madness
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 15 Nov 2001 19:10:33 -0800

On 11/15/01 6:43 PM, "AppleScript Greg" <email@hidden>
wrote:

> I know I have done this before. But this line:
>
>
>
> store script theNewScript in file (newScript)
>
>
>
> Gives me an error ("Can't make some data into the expected type.") and I
> swear I can't figure it out. I even stripped it down to theNewScript to
> "beep 2". I also know that the newScript is a properly formed alias and the
> alias exists.
>
> Can someone tell me what I am doing wrong?


If theNewScript is already a properly formed alias, as you say, rather than
a properly formed string file-path, then you don't need a redundant 'file'.
You want

store script theNewScript in newScript replacing yes

--
Paul Berkowitz


  • Follow-Ups:
    • Re: Store Script Madness
      • From: AppleScript Greg <email@hidden>
References: 
 >Store Script Madness (From: AppleScript Greg <email@hidden>)

  • Prev by Date: Re: Scripting Outlook Express 5
  • Next by Date: Re: weird clipboard behaviour
  • Previous by thread: Store Script Madness
  • Next by thread: Re: Store Script Madness
  • Index(es):
    • Date
    • Thread