2<\/strong> -- Short delay after keypress\r\n<\/pre>\nSimulates the keystroke Control<\/span> + Option<\/span> + U<\/span>, using the Magnet app to position the first opened app at the top-right corner of the screen.<\/p>\nStep 3<\/h5>\n\r\n -- Step 3: Open first new window via File > New Window\r\n tell process \"Cricut Design Space<\/strong>\"\r\n click menu item \"New Window<\/strong>\" of menu \"File<\/strong>\" of menu bar 1\r\n end tell\r\n delay 2<\/strong> -- Wait 2 seconds for the new window to open\r\n<\/pre>\nSimulates clicking on the app\u2019s navigation menu \u201cFile\u201d > \u201cNew Window\u201d to open a second copy of the app, then waits 2<\/code> seconds for it to load.<\/p>\nStep 4<\/h5>\n\r\n -- Step 4: Simulate Control + Option + I\r\n key code 34<\/strong> using {control down<\/strong>, option down<\/strong>} -- I key has key code 34\r\n delay 2<\/strong> -- Short delay after keypress\r\n<\/pre>\nSimulates the keystroke Control<\/span> + Option<\/span> + I<\/span> to position the second opened app at the top-left of the screen, then waits 2<\/code> seconds to ensure the action is fully executed.<\/p>\nStep 5<\/h5>\n\r\n -- Step 5: Open second new window via File > New Window\r\n tell process \"Cricut Design Space<\/strong>\"\r\n click menu item \"New Window<\/strong>\" of menu \"File<\/strong>\" of menu bar 1\r\n end tell\r\n delay 2<\/strong> -- Wait 2 seconds for the new window to open\r\n<\/pre>\nSimulates clicking on the app\u2019s navigation menu \u201cFile\u201d > \u201cNew Window\u201d to open a third copy of the app, then waits 2<\/code> seconds for it to load.<\/p>\nStep 6<\/h5>\n\r\n -- Step 6: Simulate Control + Option + J\r\n key code 38<\/strong> using {control down<\/strong>, option down<\/strong>} -- J key has key code 38\r\n delay 5<\/strong> -- Short delay after keypress\r\n<\/pre>\nSimulates the keystroke Control<\/span> + Option<\/span> + J<\/span> to position the third opened app at the bottom-left of the screen, then waits 5<\/code> seconds for the action to be fully executed.<\/p>\nStep 7<\/h5>\n\r\n -- Step 7: Open third new window via File > New Window\r\n tell process \"Cricut Design Space<\/strong>\"\r\n click menu item \"New Window<\/strong>\" of menu \"File<\/strong>\" of menu bar 1\r\n end tell\r\n delay 2<\/strong> -- Wait 2 seconds for the new window to open\r\n<\/pre>\nSimulates clicking on the app\u2019s navigation menu \u201cFile\u201d > \u201cNew Window\u201d to open a fourth and final copy of the app, then waits 2<\/code> seconds for it to load.<\/p>\nStep 8<\/h5>\n\r\n -- Step 8: Simulate Control + Option + K\r\n key code 40<\/strong> using {control down<\/strong>, option down<\/strong>} -- K key has key code 40\r\n<\/pre>\nSimulates the keystroke Control<\/span> + Option<\/span> + K<\/span> to position the fourth opened app at the bottom-right of the screen.<\/p>\n<\/div>\n
3. Replace Script, Test Script<\/h4>\n With your edited version of the script, paste it inside the \u201cRun AppleScript<\/strong>\u201d action, replacing the existing one. Click the Run<\/strong> button directly on top or the Run<\/strong> button in the top-right corner of the screen to test if it works. If it doesn\u2019t, debug the script and test it again.<\/p>\n<\/span><\/span><\/figure>\nOnce it runs successfully as expected, go to the top menu bar and click File<\/strong> > Save<\/strong>. Make sure the File Format is set to \u201cApplication<\/strong>\u201d so it\u2019s saved as an executable program.<\/p>\n<\/div>\n
4. Edit Privacy & Security Settings<\/h4>\n Since the app performs automated keystrokes on your Mac, macOS will block it by default. To ensure it works correctly, you\u2019ll need to grant the app the necessary permissions.<\/p>\n
Open System Settings and navigate to Privacy & Security<\/strong> > Accessibility<\/strong>. Enable the app, or click the \u201c+<\/strong>\u201d button at the bottom to add it if it\u2019s not already listed.<\/p>\n<\/span><\/span><\/figure>\n<\/div>\n
AppleScript Key Code Reference<\/h4>\n\n
\n\nKey<\/th>\n Key Code<\/th>\n Key<\/th>\n Key Code<\/th>\n<\/tr>\n \nA<\/strong><\/td>\n0<\/td>\n B<\/strong><\/td>\n11<\/td>\n<\/tr>\n \nC<\/strong><\/td>\n8<\/td>\n D<\/strong><\/td>\n2<\/td>\n<\/tr>\n \nE<\/strong><\/td>\n14<\/td>\n F<\/strong><\/td>\n3<\/td>\n<\/tr>\n \nG<\/strong><\/td>\n5<\/td>\n H<\/strong><\/td>\n4<\/td>\n<\/tr>\n \nI<\/strong><\/td>\n34<\/td>\n J<\/strong><\/td>\n38<\/td>\n<\/tr>\n \nK<\/strong><\/td>\n40<\/td>\n L<\/strong><\/td>\n37<\/td>\n<\/tr>\n \nM<\/strong><\/td>\n46<\/td>\n N<\/strong><\/td>\n45<\/td>\n<\/tr>\n \nO<\/strong><\/td>\n31<\/td>\n P<\/strong><\/td>\n35<\/td>\n<\/tr>\n \nQ<\/strong><\/td>\n12<\/td>\n R<\/strong><\/td>\n15<\/td>\n<\/tr>\n \nS<\/strong><\/td>\n1<\/td>\n T<\/strong><\/td>\n17<\/td>\n<\/tr>\n \nU<\/strong><\/td>\n32<\/td>\n V<\/strong><\/td>\n9<\/td>\n<\/tr>\n \nW<\/strong><\/td>\n13<\/td>\n X<\/strong><\/td>\n7<\/td>\n<\/tr>\n \nY<\/strong><\/td>\n16<\/td>\n Z<\/strong><\/td>\n6<\/td>\n<\/tr>\n \n1<\/strong><\/td>\n18<\/td>\n 2<\/strong><\/td>\n19<\/td>\n<\/tr>\n \n3<\/strong><\/td>\n20<\/td>\n 4<\/strong><\/td>\n21<\/td>\n<\/tr>\n \n5<\/strong><\/td>\n23<\/td>\n 6<\/strong><\/td>\n22<\/td>\n<\/tr>\n \n7<\/strong><\/td>\n26<\/td>\n 8<\/strong><\/td>\n28<\/td>\n<\/tr>\n \n9<\/strong><\/td>\n25<\/td>\n 0<\/strong><\/td>\n29<\/td>\n<\/tr>\n \nEqual (=)<\/strong><\/td>\n24<\/td>\n Minus (-)<\/strong><\/td>\n27<\/td>\n<\/tr>\n \nRight Bracket (])<\/strong><\/td>\n30<\/td>\n Left Bracket ([)<\/strong><\/td>\n33<\/td>\n<\/tr>\n \nQuote (\u2018)<\/strong><\/td>\n39<\/td>\n Semicolon (;)<\/strong><\/td>\n41<\/td>\n<\/tr>\n \n