Skip to content

Commit

Permalink
chore: automator re-build
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcipriano committed May 7, 2023
1 parent 64744d6 commit 4e2393c
Show file tree
Hide file tree
Showing 44 changed files with 216 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
61 changes: 40 additions & 21 deletions fn-toggle.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<key>AMStayOpen</key>
<false/>
<key>BuildMachineOSBuild</key>
<string>16A275a</string>
<string>22A380007</string>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
Expand All @@ -28,19 +30,19 @@
</dict>
</array>
<key>CFBundleExecutable</key>
<string>Application Stub</string>
<string>Automator Application Stub</string>
<key>CFBundleIconFile</key>
<string>AutomatorApplet</string>
<string>ApplicationStub</string>
<key>CFBundleIdentifier</key>
<string>com.apple.automator.fn</string>
<string>com.apple.automator.fn-toggle</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>fn</string>
<string>fn-toggle</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand All @@ -50,38 +52,55 @@
<key>CFBundleURLTypes</key>
<array/>
<key>CFBundleVersion</key>
<string>428</string>
<string>521.1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>8R174l</string>
<string>22E241</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<string>13.3</string>
<key>DTSDKBuild</key>
<string>16A275a</string>
<string>22E241</string>
<key>DTSDKName</key>
<string>macosx10.12internal</string>
<string>macosx13.3.internal</string>
<key>DTXcode</key>
<string>0800</string>
<string>1430</string>
<key>DTXcodeBuild</key>
<string>8R174l</string>
<string>14E6097d</string>
<key>LSMinimumSystemVersion</key>
<string>10.5</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
</dict>
<string>10.9</string>
<key>LSUIElement</key>
<true/>
<key>NSAppleEventsUsageDescription</key>
<string>This workflow needs to control other applications to run.</string>
<key>NSAppleMusicUsageDescription</key>
<string>This workflow needs access to your music to run.</string>
<key>NSAppleScriptEnabled</key>
<string>YES</string>
<key>NSMainNibFile</key>
<string>ApplicationStub</string>
<key>NSCalendarsUsageDescription</key>
<string>This workflow needs access to your calendars to run.</string>
<key>NSCameraUsageDescription</key>
<string>This workflow needs access to your camera to run.</string>
<key>NSContactsUsageDescription</key>
<string>This workflow needs access to your contacts to run.</string>
<key>NSHomeKitUsageDescription</key>
<string>This workflow needs access to your HomeKit Home to run.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This workflow needs access to your microphone to run.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This workflow needs access to your photos to run.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSRemindersUsageDescription</key>
<string>This workflow needs access to your reminders to run.</string>
<key>NSServices</key>
<array/>
<key>NSSiriUsageDescription</key>
<string>This workflow needs access to Siri to run.</string>
<key>NSSystemAdministrationUsageDescription</key>
<string>This workflow needs access to administer this system in order to run.</string>
<key>UTExportedTypeDeclarations</key>
<array/>
<key>UTImportedTypeDeclarations</key>
Expand Down
Binary file removed fn-toggle.app/Contents/MacOS/Application Stub
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added fn-toggle.app/Contents/Resources/Assets.car
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
171 changes: 171 additions & 0 deletions fn-toggle.app/Contents/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>Resources/ApplicationStub.icns</key>
<data>
RYTqh+7iocnEIV8iTs9EgJjEkO4=
</data>
<key>Resources/Assets.car</key>
<data>
JKmDZyaEZhdw6lQtiGZXvZQYrxc=
</data>
<key>Resources/InfoPlist.loctable</key>
<data>
GFHRfFTmEbAuZE1iyKibKmkU2+0=
</data>
</dict>
<key>files2</key>
<dict>
<key>Resources/ApplicationStub.icns</key>
<dict>
<key>hash</key>
<data>
RYTqh+7iocnEIV8iTs9EgJjEkO4=
</data>
<key>hash2</key>
<data>
odOqeBevxysHIbR5V5qgZz11qTuV9cL5jKaIcUw3R0I=
</data>
</dict>
<key>Resources/Assets.car</key>
<dict>
<key>hash</key>
<data>
JKmDZyaEZhdw6lQtiGZXvZQYrxc=
</data>
<key>hash2</key>
<data>
FYuVchdqoGj5omKx5fR3QG9qW1xmDqXdrjDVvDkMps8=
</data>
</dict>
<key>Resources/InfoPlist.loctable</key>
<dict>
<key>hash</key>
<data>
GFHRfFTmEbAuZE1iyKibKmkU2+0=
</data>
<key>hash2</key>
<data>
UOUbWh1OGuLBljFDZpqdwARDPWymLLRuoV5MvojegUE=
</data>
</dict>
<key>document.wflow</key>
<dict>
<key>cdhash</key>
<data>
6Cm9lyG3MoGmBgJE1l6WssCklww=
</data>
<key>requirement</key>
<string>cdhash H"1c74c47ce64c0e31d8bd31b49b8ad465a7153afd" or cdhash H"e829bd9721b73281a6060244d65e96b2c0a4970c"</string>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
34 changes: 4 additions & 30 deletions fn-toggle.app/Contents/document.wflow
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>AMApplicationBuild</key>
<string>428</string>
<string>521.1</string>
<key>AMApplicationVersion</key>
<string>2.7</string>
<string>2.10</string>
<key>AMDocumentVersion</key>
<string>2</string>
<key>actions</key>
Expand Down Expand Up @@ -51,33 +51,7 @@
<key>ActionParameters</key>
<dict>
<key>source</key>
<string>tell application "System Settings"

reveal anchor "Shortcuts" of pane "Keyboard"
activate
end tell

tell application "System Events" to tell process "System Settings"
set timeoutSeconds to 5
set totalDelay to 0
repeat while not (exists sheet 1 of window 1)
delay 0.1
set totalDelay to totalDelay + 0.1
if totalDelay &gt; timeoutSeconds then
error "keyboard modal did not appear within " &amp; timeoutSeconds &amp; " seconds."
end if
end repeat


tell splitter group 1 of group 1 of sheet 1 of window 1
select row 11 of outline 1 of scroll area 1 of group 1
click checkbox 1 of group 1 of scroll area 1 of group 2
click button -1 of group 2
end tell
end tell
delay 0.3 -- Wait for save to complete
quit application "System Settings"
</string>
<string>tell application "System Settings" reveal anchor "Shortcuts" of pane "Keyboard" activateend telltell application "System Events" to tell process "System Settings" set timeoutSeconds to 5 set totalDelay to 0 repeat while not (exists sheet 1 of window 1) delay 0.1 set totalDelay to totalDelay + 0.1 if totalDelay &gt; timeoutSeconds then error "keyboard modal did not appear within " &amp; timeoutSeconds &amp; " seconds." end if end repeat tell splitter group 1 of group 1 of sheet 1 of window 1 select row 11 of outline 1 of scroll area 1 of group 1 click checkbox 1 of group 1 of scroll area 1 of group 2 click button -1 of group 2 end tellend telldelay 0.3 -- Wait for save to completequit application "System Settings"</string>
</dict>
<key>BundleIdentifier</key>
<string>com.apple.Automator.RunScript</string>
Expand Down Expand Up @@ -131,7 +105,7 @@ end run</string>
<key>isViewVisible</key>
<true/>
<key>location</key>
<string>271.500000:316.000000</string>
<string>309.000000:315.000000</string>
<key>nibPath</key>
<string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string>
</dict>
Expand Down

0 comments on commit 4e2393c

Please sign in to comment.