You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
3.6 KiB
XML
150 lines
3.6 KiB
XML
<?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>AMApplicationBuild</key>
|
|
<string>492</string>
|
|
<key>AMApplicationVersion</key>
|
|
<string>2.10</string>
|
|
<key>AMDocumentVersion</key>
|
|
<string>2</string>
|
|
<key>actions</key>
|
|
<array>
|
|
<dict>
|
|
<key>action</key>
|
|
<dict>
|
|
<key>AMAccepts</key>
|
|
<dict>
|
|
<key>Container</key>
|
|
<string>List</string>
|
|
<key>Optional</key>
|
|
<true/>
|
|
<key>Types</key>
|
|
<array>
|
|
<string>com.apple.applescript.object</string>
|
|
</array>
|
|
</dict>
|
|
<key>AMActionVersion</key>
|
|
<string>1.0.2</string>
|
|
<key>AMApplication</key>
|
|
<array>
|
|
<string>Automator</string>
|
|
</array>
|
|
<key>AMParameterProperties</key>
|
|
<dict>
|
|
<key>source</key>
|
|
<dict/>
|
|
</dict>
|
|
<key>AMProvides</key>
|
|
<dict>
|
|
<key>Container</key>
|
|
<string>List</string>
|
|
<key>Types</key>
|
|
<array>
|
|
<string>com.apple.applescript.object</string>
|
|
</array>
|
|
</dict>
|
|
<key>ActionBundlePath</key>
|
|
<string>/System/Library/Automator/Run AppleScript.action</string>
|
|
<key>ActionName</key>
|
|
<string>Run AppleScript</string>
|
|
<key>ActionParameters</key>
|
|
<dict>
|
|
<key>source</key>
|
|
<string>on run {input, parameters}
|
|
set paths to ""
|
|
repeat with i from 1 to length of input
|
|
set cur to item i of input
|
|
set paths to paths & " " & quote & POSIX path of cur & quote
|
|
end repeat
|
|
set cmd to "vim -p" & paths
|
|
tell application "iTerm"
|
|
set created to false
|
|
if not (exists current window) then
|
|
create window with profile "Default"
|
|
set created to true
|
|
end if
|
|
tell current window
|
|
if not created then
|
|
create tab with profile "Default"
|
|
end if
|
|
tell current session
|
|
activate
|
|
write text cmd
|
|
end tell
|
|
end tell
|
|
end tell
|
|
end run</string>
|
|
</dict>
|
|
<key>BundleIdentifier</key>
|
|
<string>com.apple.Automator.RunScript</string>
|
|
<key>CFBundleVersion</key>
|
|
<string>1.0.2</string>
|
|
<key>CanShowSelectedItemsWhenRun</key>
|
|
<false/>
|
|
<key>CanShowWhenRun</key>
|
|
<true/>
|
|
<key>Category</key>
|
|
<array>
|
|
<string>AMCategoryUtilities</string>
|
|
</array>
|
|
<key>Class Name</key>
|
|
<string>RunScriptAction</string>
|
|
<key>InputUUID</key>
|
|
<string>EE815918-C8D4-4CF4-9059-1F0A03408725</string>
|
|
<key>Keywords</key>
|
|
<array>
|
|
<string>Run</string>
|
|
</array>
|
|
<key>OutputUUID</key>
|
|
<string>E235EDC5-BF18-4ED7-A16A-8DA4A9B13520</string>
|
|
<key>UUID</key>
|
|
<string>860D55BA-363F-42F9-91C1-5C6C397D2663</string>
|
|
<key>UnlocalizedApplications</key>
|
|
<array>
|
|
<string>Automator</string>
|
|
</array>
|
|
<key>arguments</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>default value</key>
|
|
<string>on run {input, parameters}
|
|
|
|
(* Your script goes here *)
|
|
|
|
return input
|
|
end run</string>
|
|
<key>name</key>
|
|
<string>source</string>
|
|
<key>required</key>
|
|
<string>0</string>
|
|
<key>type</key>
|
|
<string>0</string>
|
|
<key>uuid</key>
|
|
<string>0</string>
|
|
</dict>
|
|
</dict>
|
|
<key>conversionLabel</key>
|
|
<integer>0</integer>
|
|
<key>isViewVisible</key>
|
|
<true/>
|
|
<key>location</key>
|
|
<string>309.000000:315.000000</string>
|
|
<key>nibPath</key>
|
|
<string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string>
|
|
</dict>
|
|
<key>isViewVisible</key>
|
|
<true/>
|
|
</dict>
|
|
</array>
|
|
<key>connectors</key>
|
|
<dict/>
|
|
<key>workflowMetaData</key>
|
|
<dict>
|
|
<key>workflowTypeIdentifier</key>
|
|
<string>com.apple.Automator.application</string>
|
|
</dict>
|
|
</dict>
|
|
</plist>
|