• 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: Dynamic Records?? (or other alternatives)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic Records?? (or other alternatives)


  • Subject: Re: Dynamic Records?? (or other alternatives)
  • From: "Jason W. Bruce" <email@hidden>
  • Date: Thu, 29 Nov 2001 09:44:49 +0000

> 2) Can you create a record during the running of a script, such as
>
> set wrdz to {"applescript":2 , "script":1}
>
> adding a new entry for each new word the script encounters. Or are records
> not the way to do this? Or do I need to go about the entire process a
> different way. From what I can tell, you have to define everything in the
> record before it is run. Am i wrong?

You can create a record on the fly and then combine it with an existing
record as follows:

set foo to {myrecord:3, myscript:4}
set wrdz to "{applescript:2,Script:1}"
set bar to run script wrdz
set foobar to foo & bar

--> {myrecord:3, myscript:4, AppleScript:2, script:1}

Jason Bruce


  • Prev by Date: Re: OS X Trash script
  • Next by Date: Re: AppleScript to react to buttonpress on webpage
  • Previous by thread: Re: Dynamic Records?? (or other alternatives)
  • Next by thread: Re: Dynamic Records?? (or other alternatives)
  • Index(es):
    • Date
    • Thread