script in script

I have a simple script that calls another e.g.

With timeout of 600 seconds
run script (“name of script”)
end timeout


The script it calls can do almost anything…

Trouble is which ever script I ask it to run comes up with an applescript timeout almost directly after the second script has loaded.

Does anybody know what I could be doing wrong.

Steve

Maybe you need to move the increased timeout to the external script.

Try putting the timeout in the script you are loading and running. The timout you have in your trigger script does not affect the loaded script.

Also, your script may be scaled down for posting purposes but I thought I’d check to see if you were defining what script you were running instead of just declaring a name of the script. Again, you probably have defined your script and just not posted it but in the spirit of being thorough you define the script to be run thusly.

set someOtherScript to load script "Mac HD:Desktop Folder:Some script"
run script someOtherScript

Again, you probably knew this but I just want to include everything.

Best,