|
21 | 21 | <true/>
|
22 | 22 | <key>Types</key>
|
23 | 23 | <array>
|
24 |
| - <string>com.apple.cocoa.string</string> |
| 24 | + <string>com.apple.applescript.object</string> |
25 | 25 | </array>
|
26 | 26 | </dict>
|
27 | 27 | <key>AMActionVersion</key>
|
28 |
| - <string>2.0.3</string> |
| 28 | + <string>1.0.2</string> |
29 | 29 | <key>AMApplication</key>
|
30 | 30 | <array>
|
31 | 31 | <string>Automator</string>
|
32 | 32 | </array>
|
33 | 33 | <key>AMParameterProperties</key>
|
34 | 34 | <dict>
|
35 |
| - <key>COMMAND_STRING</key> |
36 |
| - <dict/> |
37 |
| - <key>CheckedForUserDefaultShell</key> |
38 |
| - <dict/> |
39 |
| - <key>inputMethod</key> |
40 |
| - <dict/> |
41 |
| - <key>shell</key> |
42 |
| - <dict/> |
43 | 35 | <key>source</key>
|
44 | 36 | <dict/>
|
45 | 37 | </dict>
|
|
49 | 41 | <string>List</string>
|
50 | 42 | <key>Types</key>
|
51 | 43 | <array>
|
52 |
| - <string>com.apple.cocoa.string</string> |
| 44 | + <string>com.apple.applescript.object</string> |
53 | 45 | </array>
|
54 | 46 | </dict>
|
55 | 47 | <key>ActionBundlePath</key>
|
56 |
| - <string>/System/Library/Automator/Run Shell Script.action</string> |
| 48 | + <string>/System/Library/Automator/Run AppleScript.action</string> |
57 | 49 | <key>ActionName</key>
|
58 |
| - <string>Run Shell Script</string> |
| 50 | + <string>Run AppleScript</string> |
59 | 51 | <key>ActionParameters</key>
|
60 | 52 | <dict>
|
61 |
| - <key>COMMAND_STRING</key> |
62 |
| - <string>cd ~/Documents/Code/shorten-url && osascript shorten.scpt</string> |
63 |
| - <key>CheckedForUserDefaultShell</key> |
64 |
| - <true/> |
65 |
| - <key>inputMethod</key> |
66 |
| - <integer>0</integer> |
67 |
| - <key>shell</key> |
68 |
| - <string>/bin/zsh</string> |
69 | 53 | <key>source</key>
|
70 |
| - <string></string> |
| 54 | + <string>set longLink to (the clipboard as text)do shell script "cd ~/Documents/Code/shorten-url && /usr/local/bin/node index.js"set shortLink to (the clipboard as text)display notification longLink with title "Link Shortened" subtitle shortLink sound name "purr"</string> |
71 | 55 | </dict>
|
72 | 56 | <key>BundleIdentifier</key>
|
73 |
| - <string>com.apple.RunShellScript</string> |
| 57 | + <string>com.apple.Automator.RunScript</string> |
74 | 58 | <key>CFBundleVersion</key>
|
75 |
| - <string>2.0.3</string> |
| 59 | + <string>1.0.2</string> |
76 | 60 | <key>CanShowSelectedItemsWhenRun</key>
|
77 | 61 | <false/>
|
78 | 62 | <key>CanShowWhenRun</key>
|
|
82 | 66 | <string>AMCategoryUtilities</string>
|
83 | 67 | </array>
|
84 | 68 | <key>Class Name</key>
|
85 |
| - <string>RunShellScriptAction</string> |
| 69 | + <string>RunScriptAction</string> |
86 | 70 | <key>InputUUID</key>
|
87 |
| - <string>EB8605C0-47FB-418D-9BCD-A587C8FCFBCD</string> |
| 71 | + <string>F74B1CFC-81DF-4689-98E1-7141C62D4F15</string> |
88 | 72 | <key>Keywords</key>
|
89 | 73 | <array>
|
90 |
| - <string>Shell</string> |
91 |
| - <string>Script</string> |
92 |
| - <string>Command</string> |
93 | 74 | <string>Run</string>
|
94 |
| - <string>Unix</string> |
95 | 75 | </array>
|
96 | 76 | <key>OutputUUID</key>
|
97 |
| - <string>FA188D6D-59D6-4CBA-A205-A97DF2149F8A</string> |
| 77 | + <string>FC4F4C54-C791-4F9C-BE48-CCAA09895B38</string> |
98 | 78 | <key>UUID</key>
|
99 |
| - <string>BA6176D9-D1CD-4584-93D6-A8D470045073</string> |
| 79 | + <string>BF2EC0AF-5C97-43B1-8F7E-48DC57B26387</string> |
100 | 80 | <key>UnlocalizedApplications</key>
|
101 | 81 | <array>
|
102 | 82 | <string>Automator</string>
|
|
106 | 86 | <key>0</key>
|
107 | 87 | <dict>
|
108 | 88 | <key>default value</key>
|
109 |
| - <integer>0</integer> |
110 |
| - <key>name</key> |
111 |
| - <string>inputMethod</string> |
112 |
| - <key>required</key> |
113 |
| - <string>0</string> |
114 |
| - <key>type</key> |
115 |
| - <string>0</string> |
116 |
| - <key>uuid</key> |
117 |
| - <string>0</string> |
118 |
| - </dict> |
119 |
| - <key>1</key> |
120 |
| - <dict> |
121 |
| - <key>default value</key> |
122 |
| - <false/> |
123 |
| - <key>name</key> |
124 |
| - <string>CheckedForUserDefaultShell</string> |
125 |
| - <key>required</key> |
126 |
| - <string>0</string> |
127 |
| - <key>type</key> |
128 |
| - <string>0</string> |
129 |
| - <key>uuid</key> |
130 |
| - <string>1</string> |
131 |
| - </dict> |
132 |
| - <key>2</key> |
133 |
| - <dict> |
134 |
| - <key>default value</key> |
135 |
| - <string></string> |
| 89 | + <string>on run {input, parameters} |
| 90 | + |
| 91 | + (* Your script goes here *) |
| 92 | + |
| 93 | + return input |
| 94 | +end run</string> |
136 | 95 | <key>name</key>
|
137 | 96 | <string>source</string>
|
138 | 97 | <key>required</key>
|
139 | 98 | <string>0</string>
|
140 | 99 | <key>type</key>
|
141 | 100 | <string>0</string>
|
142 | 101 | <key>uuid</key>
|
143 |
| - <string>2</string> |
144 |
| - </dict> |
145 |
| - <key>3</key> |
146 |
| - <dict> |
147 |
| - <key>default value</key> |
148 |
| - <string></string> |
149 |
| - <key>name</key> |
150 |
| - <string>COMMAND_STRING</string> |
151 |
| - <key>required</key> |
152 |
| - <string>0</string> |
153 |
| - <key>type</key> |
154 |
| - <string>0</string> |
155 |
| - <key>uuid</key> |
156 |
| - <string>3</string> |
157 |
| - </dict> |
158 |
| - <key>4</key> |
159 |
| - <dict> |
160 |
| - <key>default value</key> |
161 |
| - <string>/bin/sh</string> |
162 |
| - <key>name</key> |
163 |
| - <string>shell</string> |
164 |
| - <key>required</key> |
165 | 102 | <string>0</string>
|
166 |
| - <key>type</key> |
167 |
| - <string>0</string> |
168 |
| - <key>uuid</key> |
169 |
| - <string>4</string> |
170 | 103 | </dict>
|
171 | 104 | </dict>
|
172 | 105 | <key>conversionLabel</key>
|
173 | 106 | <integer>0</integer>
|
174 | 107 | <key>isViewVisible</key>
|
175 | 108 | <true/>
|
176 | 109 | <key>location</key>
|
177 |
| - <string>309.000000:252.000000</string> |
| 110 | + <string>309.000000:315.000000</string> |
178 | 111 | <key>nibPath</key>
|
179 |
| - <string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/Base.lproj/main.nib</string> |
| 112 | + <string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string> |
180 | 113 | </dict>
|
181 | 114 | <key>isViewVisible</key>
|
182 | 115 | <true/>
|
|
0 commit comments