lists as parameters between two scripts
lists as parameters between two scripts
- Subject: lists as parameters between two scripts
- From: email@hidden
- Date: Fri, 27 Jul 2001 06:49:09 +0100
Is it possible to pass a list(of folders on a disk) as a parameter
from one script to another using program linking only ?
On the 'Client' script that is idling on the remote machine I have a
function
on getlistoffolders()
tell application "Finder"
activate
set theList to {}
copy every folder of (every disk) to theList
end tell
return theList
end getlistoffolders
which I am calling using
if Administrator_Choice is equal to "Test" then
set theList to {}
tell application "Client" of machine remoteMachine
set theList to result of getlistoffolders()
end tell
tell application "Finder"
copy (choose from list my_flder_list B,
with prompt "Choose the items you wish SWEEP to scan \"" &
"(Use the Command (b) key for multiple selections.)" & return B,
default items choosenThings with multiple selections allowed
without empty selection allowed) to choosenThings
copy (choose from list theList with prompt "Choose") to thechoice
end tell
end if
The list is returned , but as an error , and to my knowledge
1)Lists are read only
2) this cannot be coerced or used as a list of aliases because I am program
linking only
Any ideas ?
The concept is to use this list for the administrator to choose a selection
of folders remotely .
Obviously the list will need to be passed back to the client script too!
TIA
Peter James - Sophos Plc
System Developer
Peter James System Developer Sophos Anti-Virus
email: email@hidden
http://www.sophos.com
US support: +1 888 SOPHOS 9 UK Support: +44 1235
559933
DDI +44 1235 544159