April 22, 200322 yr in redesigning an app, i'd like to concatenate some scripts into one in several places. there's no way to do this with copy/paste, but i seem to remember hearing about a technique to do this with applescript. any pointers appreciated.
April 22, 200322 yr Hi Stefangs, If you are using version 5.0 or later, you can import scripts from one file to another. If you are using an older versions, then you will need a utility such as AutoScript.fm Pro HTH Lee
April 22, 200322 yr Author sorry, perhaps i wasn't making myself clear enough. what i want to do is string 2 or more scripts into 1. importing won't help, because they will still be separate scripts. apparently there's a way to do that with applescript, but i don't know how.
April 23, 200322 yr External script That's the answer -- at the end of the 1st script, add a Perform Script step; if the next script needs to run from another file, use the "External script" to select it.
April 23, 200322 yr i guess he just wants to put 20 3-line skripts into one 60-line skript. AppleSkript is of no help here. There once was a solution for FM 4 which was based on mouse-clicks at a certain window position, but it was never finished. And never worked in foreign language files. Since there is no "create script" (applescript-)command in FileMaker, spend your time typing rather than trying to make this utility work. b.t.w, the utility is called "Promaker Utils", was available from Peter Baanen (www.troi.com). He stopped developing it further because ofthe "import-Script"-ability of FM 5.
April 23, 200322 yr Why do you want them to be one script? There's no real advantage -- in fact, I often split scripts into two or more modules in order to be able to use the same modules over and over simply by stringing them in different orders.
Create an account or sign in to comment