I want to be able to:
¢ choose a file path in one script
¢ set it as a variable
¢ run another script file
¢ pass the variable to that script
So far I can only do it by using the clipboard as shown in the following very simple examples. Is there another better way?
First Script
set destPath to "Put this text in the dialog box"
set the clipboard to destPath
set myScript to load script file "/Users/dwhitehead/Desktop/test/Display_Dialog_Test.scpt" as POSIX file
run myScript
Second Script
set destPath to the clipboard
display dialog destPath
Model: 2 x 2.8 GHz Quad-Core Intel Xeon
AppleScript: 2.1.2
Browser: Firefox 3.6.14
Operating System: Mac OS X (10.6)