• 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: variables vrs properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variables vrs properties


  • Subject: Re: variables vrs properties
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 5 Jan 2011 16:35:56 -0600
  • Acceptlanguage: en-US
  • Thread-topic: variables vrs properties

Title: Re: variables vrs properties
I think you use run script with the load script command.

To address a script object I think you use a tell, like this?

property list_of_items : {}
script
do_the_duty
   tell application "Finder" to display dialog (list_of_items as text)
end script
on
run
   set p2d to "" & (path to desktop)
    
set my
list_of_items to {p2d & "testFile" as alias, p2d & "TestFile-a" as alias}
    
tell
do_the_duty to run
end run

on
open sel
   copy sel to my list_of_items
   tell do_the_duty to run
   
end
open


On 1/5/11 2:20 PM, "KOENIG Yvan" <email@hidden> wrote:

property list_of_items : {}

on run
set p2d to "" & (path to desktop)
set my list_of_items to {p2d & "Courrier 96.cwk" as alias, p2d & "Converted document.doc" as alias}
run script do_the_duty
end run

on open sel
copy sel to my list_of_items
run script do_the_duty
end open

script do_the_duty
display dialog (list_of_items as text)
end script
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: variables vrs properties
      • From: Shane Stanley <email@hidden>
    • Re: variables vrs properties
      • From: Alex Zavatone <email@hidden>
References: 
 >Re: variables vrs properties (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: slow shell
  • Next by Date: Re: slow shell
  • Previous by thread: Re: variables vrs properties
  • Next by thread: Re: variables vrs properties
  • Index(es):
    • Date
    • Thread