Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Script to Open all Programs
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Brown Study" data-source="post: 575360" data-attributes="member: 3889"><p>I'm no expert AppleScripter (as the following proves), but it would be easier to write if each Applications folder is absolutely identical to every other. You might then write something with Script Editor like this that would cover every app in each machine:</p><p></p><p>Tell application "Asteroids"</p><p>activate </p><p>quit</p><p>end tell</p><p>tell application "Bozo Breath"</p><p>activate</p><p>quit</p><p>end tell</p><p></p><p>etc. etc. through the entire list in the apps folder, then the Utilities folder apps, I suppose.</p><p></p><p>I'm sure there's an easier, faster way of writing it, involving repeats, aliases and stuff. But this one, unwieldy as it might get, should work — I think.</p><p></p><p>If you try it, save the AppleScript as an application. If the script stalls, insert delays between each application and/or between each activation and quit:</p><p></p><p>tell application "Asteroids"</p><p>activate</p><p>delay 1</p><p>quit</p><p>end tell</p><p>delay 2</p><p>tell application "Bozo Breath"</p><p>activate</p><p></p><p>etc. etc. You can lengthen the delays by using higher numbers. If you store the script in the Apps folder, don't include it in the list. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Brown Study, post: 575360, member: 3889"] I'm no expert AppleScripter (as the following proves), but it would be easier to write if each Applications folder is absolutely identical to every other. You might then write something with Script Editor like this that would cover every app in each machine: Tell application "Asteroids" activate quit end tell tell application "Bozo Breath" activate quit end tell etc. etc. through the entire list in the apps folder, then the Utilities folder apps, I suppose. I'm sure there's an easier, faster way of writing it, involving repeats, aliases and stuff. But this one, unwieldy as it might get, should work — I think. If you try it, save the AppleScript as an application. If the script stalls, insert delays between each application and/or between each activation and quit: tell application "Asteroids" activate delay 1 quit end tell delay 2 tell application "Bozo Breath" activate etc. etc. You can lengthen the delays by using higher numbers. If you store the script in the Apps folder, don't include it in the list. :) [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Script to Open all Programs
Top