• 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: run script not setting script property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run script not setting script property


  • Subject: Re: run script not setting script property
  • From: John Delacour <email@hidden>
  • Date: Sun, 7 Sep 2003 22:01:04 +0100
  • Mac-eudora-version: 6.1a2

At 5:02 am -0400 7/9/03, Ken Tozier wrote:

[ snip much irrelevant stuff]

this runs fine in script editor, but if run using "run script", no dice. "lastSearchInfo" isn't updated at the "PM get resource" call. Does "run script" not allow setting of non-empty properties?

Does your problem boil down to the fact that x does not change to 101 ?

property x : 42
run script "set x to 101"
x
--> 42

If so, why do you expect a homeless script to change the properties of another ?

Contrast...

property x : 42
run a
script a
set x to 101
end script
x
--> 101


run script "property x : 42
run a
script a
set my x to 101
end script
x"
--> 101
_______________________________________________
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.

References: 
 >run script not setting script property (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Old Filemaker question
  • Next by Date: Solved: run script not setting script property
  • Previous by thread: Re: run script not setting script property
  • Next by thread: [ANN] New Developers Directory
  • Index(es):
    • Date
    • Thread