• 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: load script question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: load script question


  • Subject: Re: load script question
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 29 Jun 2001 00:06:01 -0700

On 6/28/01 11:45 PM, Sun Real <email@hidden> wrote:

>>>You may have other stuff to do with the script, but if that's *all* you
>>>want, you don't need to load the script - just run it. The result is
>>>returned.
>>>
>>>run script alias "Dora:set x"
>>>-->{10, 20, 30}

Actually, only 10 is returned.

>>Nope; that won't do it because the variables are not defined.
>
>No biggy, but I wrote your example into 2 scripts & ran it. It
>definitely worked & returned the desired result. I wouldn't have posted
>it otherwise. :-}

My script or your script? I'm confused.

>If your first script has the declarations you previously posted in its
>implicit run handler & you run the script, the variables will be defined,
>err, won't they?

Nope:

run script alias "Dora:set x"
x

The event log shows this:

>tell current application
> run script alias "Dora:set x"
> --> 30
> --> The variable x is not defined.

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Carbon & Applescript 1.5.5
  • Next by Date: repeat with i from 1 to count items of the selection (9.1)
  • Previous by thread: Re: load script question
  • Next by thread: load script question
  • Index(es):
    • Date
    • Thread