diff --git a/Workflows/ScriptPadWorkflow.alfredworkflow b/Workflows/EmailIt.alfredworkflow
similarity index 64%
rename from Workflows/ScriptPadWorkflow.alfredworkflow
rename to Workflows/EmailIt.alfredworkflow
index a53cb15..8a9a271 100644
Binary files a/Workflows/ScriptPadWorkflow.alfredworkflow and b/Workflows/EmailIt.alfredworkflow differ
diff --git a/Workflows/ScriptPad - Append BulletinBoard.lbaction/Contents/Info.plist b/Workflows/ScriptPad - Append BulletinBoard.lbaction/Contents/Info.plist
deleted file mode 100644
index 91a2b56..0000000
--- a/Workflows/ScriptPad - Append BulletinBoard.lbaction/Contents/Info.plist
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
- CFBundleIconFile
- icon.png
- CFBundleIdentifier
- com.customct.LaunchBar.action.ScriptPad-AppendBulletinBoard
- CFBundleName
- ScriptPad - Append BulletinBoard
- CFBundleVersion
- 1.0
- LBAbbreviation
- abb
- LBArgument
- text
- LBDescription
-
- LBArgument
- text
- LBAuthor
- Richard Guay
- LBEmail
- raguay@customct.com
- LBResult
- text is appended to the BulletinBoard.
- LBSummary
- This action is used to append some text into the BulletinBoard of ScriptPad.
- LBTwitter
- @CustomComputerT
- LBWebsiteURL
- customct.com
-
- LBMinimumLaunchBarVersion
- 6
- LBResult
- text is appended to the BulletinBoard.
- LBScripts
-
- LBDefaultScript
-
- LBAcceptedArgumentTypes
-
- string
-
- LBAllowsInstantReuseOfLastTextInputString
-
- LBRequiresArgument
-
- LBResultType
- unknown
- LBScriptName
- default.js
-
-
- LBTextInputTitle
- Text to append to the BulletinBoard
- LSMinimumSystemVersion
- 10.14
- NSHumanReadableCopyright
- MIT
-
-
diff --git a/Workflows/ScriptPad - Append BulletinBoard.lbaction/Contents/Resources/icon.png b/Workflows/ScriptPad - Append BulletinBoard.lbaction/Contents/Resources/icon.png
deleted file mode 100644
index 6f86a62..0000000
Binary files a/Workflows/ScriptPad - Append BulletinBoard.lbaction/Contents/Resources/icon.png and /dev/null differ
diff --git a/Workflows/ScriptPad - Paste Note.lbaction/Contents/Info.plist b/Workflows/ScriptPad - Paste Note.lbaction/Contents/Info.plist
deleted file mode 100644
index a26ce06..0000000
--- a/Workflows/ScriptPad - Paste Note.lbaction/Contents/Info.plist
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
- CFBundleIconFile
- icon.png
- CFBundleIdentifier
- com.customct.LaunchBar.action.NotePadPasteNote
- CFBundleName
- ScriptPad - Paste Note
- CFBundleVersion
- 1.0
- LBAbbreviation
- spp
- LBArgument
- text
- LBDescription
-
- LBArgument
- text
- LBAuthor
- Richard Guay
- LBEmail
- raguay@customct.com
- LBRequirements
- ScriptPad.app
- LBResult
- Text is pasted from a ScriptPad Note.
- LBSummary
- This action is used with the ScriptPad program. This action is for pasting a ScriptPad note to the topmost application.
- LBTwitter
- @CustomComputerT
- LBWebsiteURL
- http://customct.com
-
- LBMinimumLaunchBarVersion
- 6
- LBRequirements
- ScriptPad.app
- LBResult
- Text is pasted from a ScriptPad Note.
- LBScripts
-
- LBDefaultScript
-
- LBKeepWindowActive
-
- LBResultType
- unknown
- LBReturnsResult
-
- LBScriptName
- default.js
-
-
- LBTextInputTitle
- ScriptPad: Paste Note
- LSMinimumSystemVersion
- 10.13
- NSHumanReadableCopyright
- MIT
-
-
diff --git a/Workflows/ScriptPad - Paste Note.lbaction/Contents/Resources/icon.png b/Workflows/ScriptPad - Paste Note.lbaction/Contents/Resources/icon.png
deleted file mode 100644
index 6f86a62..0000000
Binary files a/Workflows/ScriptPad - Paste Note.lbaction/Contents/Resources/icon.png and /dev/null differ
diff --git a/Workflows/ScriptPad - Run Script.lbaction/Contents/Info.plist b/Workflows/ScriptPad - Run Script.lbaction/Contents/Info.plist
deleted file mode 100644
index 20f4ca3..0000000
--- a/Workflows/ScriptPad - Run Script.lbaction/Contents/Info.plist
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
- CFBundleIconFile
- icon.png
- CFBundleIdentifier
- com.customct.LaunchBar.action.ScriptPadRunScript
- CFBundleName
- ScriptPad - Run Script
- CFBundleVersion
- 1.0
- LBAbbreviation
- spr
- LBArgument
- text and a script
- LBDescription
-
- LBArgument
- text and a script
- LBAuthor
- Richard Guay
- LBEmail
- raguay@customct.com
- LBRequirements
- ScriptPad.app
- LBResult
- processed text.
- LBSummary
- This action take text to run through script in ScriptPad.
- LBTwitter
- @CustomComputerT
- LBWebsiteURL
- http://customct.com
-
- LBMinimumLaunchBarVersion
- 6
- LBRequirements
- ScriptPad.app
- LBResult
- processed text.
- LBScripts
-
- LBDefaultScript
-
- LBAcceptedArgumentTypes
-
- string
-
- LBKeepWindowActive
-
- LBLiveFeedbackEnabled
-
- LBRequiresArgument
-
- LBResultType
- unknown
- LBReturnsResult
-
- LBScriptName
- default.js
-
-
- LBTextInputTitle
- String to process...
- LSMinimumSystemVersion
- 10.13
- NSHumanReadableCopyright
- MIT
-
-
diff --git a/Workflows/ScriptPad - Run Script.lbaction/Contents/Resources/icon.png b/Workflows/ScriptPad - Run Script.lbaction/Contents/Resources/icon.png
deleted file mode 100644
index 6f86a62..0000000
Binary files a/Workflows/ScriptPad - Run Script.lbaction/Contents/Resources/icon.png and /dev/null differ
diff --git a/Workflows/ScriptPad - Run Template.lbaction/Contents/Info.plist b/Workflows/ScriptPad - Run Template.lbaction/Contents/Info.plist
deleted file mode 100644
index 193137e..0000000
--- a/Workflows/ScriptPad - Run Template.lbaction/Contents/Info.plist
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
- CFBundleIconFile
- icon.png
- CFBundleIdentifier
- com.customct.LaunchBar.action.ScriptPad-RunTemplate
- CFBundleName
- ScriptPad - Run Template
- CFBundleVersion
- 1.0
- LBAbbreviation
- spt
- LBArgument
- text and a script
- LBDescription
-
- LBArgument
- text and a script
- LBAuthor
- Richard Guay
- LBEmail
- raguay@customct.com
- LBRequirements
- ScriptPad.app
- LBResult
- processed text.
- LBSummary
- This action take text to run through script in ScriptPad.
- LBTwitter
- @CustomComputerT
- LBWebsiteURL
- http://customct.com
-
- LBMinimumLaunchBarVersion
- 6
- LBRequirements
- ScriptPad.app
- LBResult
- processed text.
- LBScripts
-
- LBDefaultScript
-
- LBAcceptedArgumentTypes
-
- string
-
- LBKeepWindowActive
-
- LBLiveFeedbackEnabled
-
- LBRequiresArgument
-
- LBResultType
- unknown
- LBReturnsResult
-
- LBScriptName
- default.js
-
-
- LBTextInputTitle
- String to process...
- LSMinimumSystemVersion
- 10.13
- NSHumanReadableCopyright
- MIT
-
-
diff --git a/Workflows/ScriptPad - Run Template.lbaction/Contents/Resources/icon.png b/Workflows/ScriptPad - Run Template.lbaction/Contents/Resources/icon.png
deleted file mode 100644
index 6f86a62..0000000
Binary files a/Workflows/ScriptPad - Run Template.lbaction/Contents/Resources/icon.png and /dev/null differ
diff --git a/Workflows/ScriptPad - Set BulletinBoard.lbaction/Contents/Info.plist b/Workflows/ScriptPad - Set BulletinBoard.lbaction/Contents/Info.plist
deleted file mode 100644
index 84177de..0000000
--- a/Workflows/ScriptPad - Set BulletinBoard.lbaction/Contents/Info.plist
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
- CFBundleIconFile
- icon.png
- CFBundleIdentifier
- com.customct.LaunchBar.action.ScriptPadSetBulletinBoard
- CFBundleName
- ScriptPad - Set BulletinBoard
- CFBundleVersion
- 1.0
- LBAbbreviation
- sbb
- LBArgument
- text
- LBDescription
-
- LBArgument
- text
- LBAuthor
- Richard Guay
- LBEmail
- raguay@customct.com
- LBResult
- text is place in the BulletinBoard.
- LBSummary
- This action is used to set some text into the BulletinBoard of ScriptPad.
- LBTwitter
- @CustomComputerT
- LBWebsiteURL
- customct.com
-
- LBMinimumLaunchBarVersion
- 6
- LBResult
- text is place in the BulletinBoard.
- LBScripts
-
- LBDefaultScript
-
- LBAcceptedArgumentTypes
-
- string
-
- LBAllowsInstantReuseOfLastTextInputString
-
- LBRequiresArgument
-
- LBResultType
- unknown
- LBScriptName
- default.js
-
-
- LBTextInputTitle
- Text to place in the BulletinBoard
- LSMinimumSystemVersion
- 10.14
- NSHumanReadableCopyright
- MIT
-
-
diff --git a/Workflows/ScriptPad - Set BulletinBoard.lbaction/Contents/Resources/icon.png b/Workflows/ScriptPad - Set BulletinBoard.lbaction/Contents/Resources/icon.png
deleted file mode 100644
index 6f86a62..0000000
Binary files a/Workflows/ScriptPad - Set BulletinBoard.lbaction/Contents/Resources/icon.png and /dev/null differ
diff --git a/Workflows/ScriptPad - Set Note.lbaction/Contents/Info.plist b/Workflows/ScriptPad - Set Note.lbaction/Contents/Info.plist
deleted file mode 100644
index 47570d0..0000000
--- a/Workflows/ScriptPad - Set Note.lbaction/Contents/Info.plist
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
- CFBundleIconFile
- icon.png
- CFBundleIdentifier
- com.customct.LaunchBar.action.ScriptPadSetNote
- CFBundleName
- ScriptPad - Set Note
- CFBundleVersion
- 1.0
- LBAbbreviation
- sps
- LBArgument
- text
- LBDescription
-
- LBArgument
- text
- LBAuthor
- Richard Guay
- LBEmail
- raguay@customct.com
- LBRequirements
- ScriptPad.app
- LBResult
- Text is placed to a ScriptPad note.
- LBSummary
- This action is used with the ScriptPad . This action is for placing text into a note.
- LBTwitter
- @CustomComputerT
- LBWebsiteURL
- http://customct.com
-
- LBMinimumLaunchBarVersion
- 6
- LBRequirements
- ScriptPad.app
- LBResult
- Text is placed to a ScriptPad note.
- LBScripts
-
- LBDefaultScript
-
- LBAcceptedArgumentTypes
-
- string
-
- LBKeepWindowActive
-
- LBRequiresArgument
-
- LBResultType
- unknown
- LBReturnsResult
-
- LBScriptName
- default.js
-
-
- LBTextInputTitle
- ScriptPad: Set Note
- LSMinimumSystemVersion
- 10.13
- NSHumanReadableCopyright
- MIT
-
-
diff --git a/Workflows/ScriptPad - Set Note.lbaction/Contents/Resources/icon.png b/Workflows/ScriptPad - Set Note.lbaction/Contents/Resources/icon.png
deleted file mode 100644
index 6f86a62..0000000
Binary files a/Workflows/ScriptPad - Set Note.lbaction/Contents/Resources/icon.png and /dev/null differ
diff --git a/Workflows/ScriptPad Run Script.dzbundle/action.rb b/Workflows/ScriptPad Run Script.dzbundle/action.rb
deleted file mode 100755
index 9602bc9..0000000
--- a/Workflows/ScriptPad Run Script.dzbundle/action.rb
+++ /dev/null
@@ -1,114 +0,0 @@
-# Dropzone Action Info
-# Name: ScriptPad Run Script
-# Description: This will take text or a file and run a predefined script on it.
-# Handles: Files, Text
-# Creator: Richard Guay
-# URL: http://customct.com
-# Events: Clicked, Dragged
-# KeyModifiers: Command, Option, Control, Shift
-# SkipConfig: No
-# UniqueID: 39487392048573890256
-# RunsSandboxed: Yes
-# Version: 1.0
-# MinDropzoneVersion: 3.0
-require 'net/http'
-require 'json'
-
-def dragged
- $dz.begin("Running Scripts...")
- numitems = $items.count
- scriptname = defined?( ENV['scriptname'] ) ? ENV['scriptname'] : "Upper Case"
- dragtype = defined?( ENV['dragged_type'] ) ? ENV['dragged_type'] : "text"
-
- #
- # Below line switches the progress display to determinate mode so we can show progress
- #
- $dz.determinate(true)
- $dz.percent(1)
-
- #
- # Index over all of the given presentations.
- #
- for index in 0 ... numitems
- #
- # Get the note text.
- #
- note = $items[index]
- if (dragtype === 'files')
- note = File.read($items[index])
- end
-
- #
- # Send it to ScriptPad.
- #
- $stdout.sync = true
-
- data = { :script => scriptname, :text => note}
- uri = URI("http://localhost:9978/api/script/run")
- http = Net::HTTP.new(uri.host, uri.port)
- req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
- req.body = data.to_json
- res = http.request(req)
- note = JSON.parse(res.body)["text"]
- if(dragtype === 'files')
- File.write($items[index], note)
- else
- $dz.text(note)
- end
-
- #
- # Update the percentage done.
- #
- $dz.percent((index/numitems)*100)
- end
-
-
- #
- # The below line tells Dropzone to end with a notification
- # center notification with the text "Copy Complete".
- #
- $dz.finish("Copy Complete")
-
- # You should always call $dz.url or $dz.text last in your script. The below $dz.text line places text on the clipboard.
- # If you don't want to place anything on the clipboard you should still call $dz.url(false)
- $dz.url(false)
-end
-
-def clicked
- #
- # Get the script name from the environment.
- #
- scriptname = defined?( ENV['scriptname'] ) ? ENV['scriptname'] : "1"
-
- #
- # Get a ScriptPad script name to run from the user.
- #
- config = "*.title = ScriptPad Script
- scriptname.label = What script to you want to run?
- scriptname.type = popup\n"
-
- #
- # Query the list of scripts from ScriptPad.
- #
- uri = URI("http://localhost:9978/api/scripts/list")
- res = JSON.parse(Net::HTTP.get(uri))
-
- #
- # Create the option list from the list we get from ScriptPad.
- #
- res.map{ |x| config += "scriptname.option = #{x}\n" }
- config += " scriptname.default = #{scriptname}"
- result = $dz.pashua(config)
- scriptname = result["scriptname"]
-
- #
- # Set the ScriptPad script name.
- #
- $dz.save_value("scriptname", scriptname)
-
- #
- # Tell the user what they selected.
- #
- $dz.finish("ScriptPad Script is '#{scriptname}'")
- $dz.url(false)
-end
diff --git a/Workflows/ScriptPad Run Script.dzbundle/icon.png b/Workflows/ScriptPad Run Script.dzbundle/icon.png
deleted file mode 100644
index 0bfc330..0000000
Binary files a/Workflows/ScriptPad Run Script.dzbundle/icon.png and /dev/null differ
diff --git a/Workflows/ScriptPad.dzbundle/action.rb b/Workflows/ScriptPad.dzbundle/action.rb
deleted file mode 100755
index 03ad50c..0000000
--- a/Workflows/ScriptPad.dzbundle/action.rb
+++ /dev/null
@@ -1,123 +0,0 @@
-# Dropzone Action Info
-# Name: ScriptPad
-# Description: This action will copy the contents of the file dropped or the text dropped and place it into the designated [ScriptPad]() note.
-# Handles: Files, Text
-# Creator: Richard Guay
-# URL: http://customct.com
-# Events: Clicked, Dragged
-# KeyModifiers: Command, Option, Control, Shift
-# UniqueID: 394873920485738902
-# SkipConfig: No
-# RunsSandboxed: Yes
-# Version: 1.2
-# MinDropzoneVersion: 3.6
-require 'net/http'
-require 'json'
-
-def dragged
- #
- # Start the action by telling the user what your doing.
- #
- $dz.begin("Copying to ScriptPad...")
- numitems = $items.count
- scriptpadid = defined?( ENV['scriptpadid'] ) ? ENV['scriptpadid'] : "1"
- append = defined?( ENV['append'] ) ? ENV['append'] : "a"
- dragtype = defined?( ENV['dragged_type'] ) ? ENV['dragged_type'] : "text"
-
- #
- # Below line switches the progress display to determinate mode so we can show progress
- #
- $dz.determinate(true)
- $dz.percent(1)
-
- #
- # Index over all of the given presentations.
- #
- for index in 0 ... numitems
- #
- # Get the note text.
- #
- note = $items[index]
- if (dragtype === 'files')
- note = File.read(note)
- end
-
- #
- # Send it to ScriptPad.
- #
- uri = URI("http://localhost:9978/api/note/#{scriptpadid}/#{append}")
- http = Net::HTTP.new(uri.host, uri.port)
- req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
- req.body = {note: "#{note}"}.to_json
- res = http.request(req)
-
- #
- # Update the percentage done.
- #
- $dz.percent((index/numitems)*100)
- end
-
-
- #
- # The below line tells Dropzone to end with a notification
- # center notification with the text "Copy Complete".
- #
- $dz.finish("Copy Complete")
-
- # You should always call $dz.url or $dz.text last in your script. The below $dz.text line places text on the clipboard.
- # If you don't want to place anything on the clipboard you should still call $dz.url(false)
- $dz.url(false)
-end
-
-def clicked
- scriptpadid = defined?( ENV['scriptpadid'] ) ? ENV['scriptpadid'] : "1"
- append = defined?( ENV['append'] ) ? ENV['append'] : "a"
-
- #
- # Get a ScriptPad ID from the user.
- #
- config = "
- *.title = ScriptPad
- id.label = Which note to save to?
- id.type = popup
- id.option = 1
- id.option = 2
- id.option = 3
- id.option = 4
- id.option = 5
- id.option = 6
- id.option = 7
- id.option = 8
- id.option = 9
- id.default = #{scriptpadid}
- append.label = Append or Overwrite (a or w)?
- append.type = textfield
- append.default = #{append}
- "
- result = $dz.pashua(config)
- scriptpadid = result["id"].to_i
- append = result["append"]
-
- #
- # Set the ScriptPad ID.
- #
- $dz.save_value("scriptpadid", scriptpadid)
-
- #
- # Tell the user what they selected.
- #
- if (append === 'a')
- appendtext = "and to append the text."
- else
- appendtext = "and to overwrite the text."
- append = 'w'
- end
-
- #
- # Set the ScriptPad ID.
- #
- $dz.save_value("append", append)
-
- $dz.finish("ScriptPad ID '#{scriptpadid}' #{appendtext}")
- $dz.url(false)
-end
diff --git a/Workflows/ScriptPad.dzbundle/icon.png b/Workflows/ScriptPad.dzbundle/icon.png
deleted file mode 100644
index 0bfc330..0000000
Binary files a/Workflows/ScriptPad.dzbundle/icon.png and /dev/null differ
diff --git a/Workflows/ScriptPad.popclipext/Config.plist b/Workflows/ScriptPad.popclipext/Config.plist
deleted file mode 100644
index 688cf05..0000000
--- a/Workflows/ScriptPad.popclipext/Config.plist
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
- Actions
-
-
- After
- show-status
- Image File
- ScriptPad.png
- Script Interpreter
- /usr/bin/ruby
- Shell Script File
- ScriptPad.rb
- Title
- ScriptPad
-
-
- Options
-
-
- Option Identifier
- noteid
- Option Type
- string
- Option Label
- ScriptPad Note #:
- Option Default Value
- 1
-
-
- Option Identifier
- append
- Option Type
- string
- Option Label
- (a)ppend or over(w)rite
- Option Default Value
- a
-
-
- Credits
-
-
- Name
- Richard Guay
- Link
- http://customct.com
-
-
- Extension Description
- Copy selection to a ScriptPad.
- Extension Identifier
- com.customct.popclip.scriptpad
- Extension Name
- ScriptPad
- Required Software Version
- 701
-
-
diff --git a/Workflows/ScriptPad.popclipext/ScriptPad.png b/Workflows/ScriptPad.popclipext/ScriptPad.png
deleted file mode 100644
index 0bfc330..0000000
Binary files a/Workflows/ScriptPad.popclipext/ScriptPad.png and /dev/null differ
diff --git a/Workflows/ScriptPad.popclipext/ScriptPad.rb b/Workflows/ScriptPad.popclipext/ScriptPad.rb
deleted file mode 100644
index 6079d9e..0000000
--- a/Workflows/ScriptPad.popclipext/ScriptPad.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-
-Encoding.default_internal = Encoding::UTF_8
-Encoding.default_external = Encoding::UTF_8
-
-input = ENV['POPCLIP_TEXT'].to_s.strip()
-noteid = ENV['POPCLIP_OPTION_NOTEID'].to_s.strip()
-modifier = ENV['POPCLIP_MODIFIER_FLAGS'].to_s
-append = ENV['POPCLIP_OPTION_APPEND'].to_s.strip()
-keycode = ENV['POPCLIP_MODIFIER_FLAGS'].to_i
-
-if input == '-'
- input = ''
-end
-
-if keycode == 262144
- address = 'http://localhost:9697/api/message/' + URI.escape(input)
- uri = URI(address)
- res = Net::HTTP.get(uri)
-elsif keycode == 524288
- address = 'http://localhost:9697/api/message/append/' + URI.escape(input)
- uri = URI(address)
- res = Net::HTTP.get(uri)
-else
- address = 'http://localhost:9978/api/note/' + noteid + '/' + append
- uri = URI(address)
- req = Net::HTTP::Put.new(uri, 'Content-Type' => 'application/json')
- req.body = { note: input }.to_json
- res = Net::HTTP.start(uri.hostname, uri.port) do |http|
- http.request(req)
- end
-end
diff --git a/Workflows/ScriptPadMacros.kmlibrary b/Workflows/ScriptPadMacros.kmlibrary
deleted file mode 100644
index 6ba3269..0000000
--- a/Workflows/ScriptPadMacros.kmlibrary
+++ /dev/null
@@ -1,2030 +0,0 @@
-
-
-
-
- Author
- Richard Guay
- AuthorURL
- customct.com
- CanDragToMacroGroup
-
- Category1
- Application Control
- Category2
- Text
- Description
- This set of macros are used to interact with the ScriptPad program.
- Items
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/1/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025019.38976395
- Name
- Add to ScriptPad 1
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 9719B87D-45BC-4DBC-94FF-FEFBA24E3B59
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/2/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025035.73519695
- Name
- Add to ScriptPad 2
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- A4D8E85A-DD34-4D33-B6D5-CEF3DC058AFE
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/3/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025042.813429
- Name
- Add to ScriptPad 3
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 2189DD27-D041-4A27-BB47-44C36EABE1C5
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/4/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025048.95377195
- Name
- Add to ScriptPad 4
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- AAABA1B4-E16E-4AD9-8E82-BB91AE64DE00
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/5/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025056.51821101
- Name
- Add to ScriptPad 5
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 3831D61B-0740-4789-BF78-49D27A382679
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/6/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025060.62147999
- Name
- Add to ScriptPad 6
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 73CB068E-8974-46BD-A6CA-6B292616F506
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/7/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025064.91837299
- Name
- Add to ScriptPad 7
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 0972927B-726A-4635-9BFA-2C66027F1B36
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/8/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025069.05332506
- Name
- Add to ScriptPad 8
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 7C3A6AFB-8A7B-43B3-A766-E63CE6817AAF
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/9/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025073.37203205
- Name
- Add to ScriptPad 9
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- ED8A4F32-C63F-4BA9-9305-8F6FF78123F7
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/1/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025078.21679401
- Name
- Overwrite to ScriptPad 1
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 6FA8E5B7-57D6-4F03-8F69-1C4F54621602
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/2/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025082.56624496
- Name
- Overwrite to ScriptPad 2
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- C5774218-8387-4F81-8AB0-A07B0ED7B1DD
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/3/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025086.61021304
- Name
- Overwrite to ScriptPad 3
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 8ACA995E-D0A6-4FC4-957F-1CE09EA053C9
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/4/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025090.56455302
- Name
- Overwrite to ScriptPad 4
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 8B0D76B7-FA79-40E2-99E5-204AD4A9C15E
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/5/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025094.252967
- Name
- Overwrite to ScriptPad 5
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- FA0B03F7-7703-40CB-9EF9-2E54666517FB
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/6/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025098.48764098
- Name
- Overwrite to ScriptPad 6
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 70A062CF-CBC4-4E14-B30C-78E9EF988052
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/7/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025103.14088905
- Name
- Overwrite to ScriptPad 7
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 08BE1DD3-E7CA-4B55-B5EB-48F98471A866
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/8/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025107.25743699
- Name
- Overwrite to ScriptPad 8
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- B1F3C949-F16B-468E-B14A-724C48CA7C30
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/9/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025111.69123495
- Name
- Overwrite to ScriptPad 9
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 9478F6BF-DF37-48A9-869E-018AB4CAE2D5
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/1/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025119.32164097
- Name
- Paste from ScriptPad 1
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- AD755313-F285-46D7-B7BE-1302D5BB89EA
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/2/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025123.57072997
- Name
- Paste from ScriptPad 2
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 0ECBDC39-61DC-43CA-A8A9-B84A30CE11A0
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/3/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025127.76807499
- Name
- Paste from ScriptPad 3
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- DBBBC2B7-75B3-482C-9757-CB9E43678F5D
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/4/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025131.93974996
- Name
- Paste from ScriptPad 4
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 35513CCC-C5F6-405A-819A-E30584C63B21
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/5/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025136.82095301
- Name
- Paste from ScriptPad 5
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 77EE2715-BE13-4AC4-866A-4F595D3786CD
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/6/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025141.38691902
- Name
- Paste from ScriptPad 6
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- DB0D2084-3F88-423D-901F-5D421D37B495
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/7/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025145.56361198
- Name
- Paste from ScriptPad 7
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 72BE7868-3AF7-4CA3-BD8C-ED4010B1DA8D
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/8/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025150.28370702
- Name
- Paste from ScriptPad 8
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- DA184BFD-C52D-4480-966B-A8CC5E26E3AD
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/9/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025156.76980901
- Name
- Paste from ScriptPad 9
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 974B3D8C-0E4E-4DD9-8EB9-22DAE209D356
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- UID
- 113765AD-8534-4A73-A3A4-D8CDDC3ED4BF
-
-
diff --git a/Workflows/ScriptPadMacros.kmmacros b/Workflows/ScriptPadMacros.kmmacros
deleted file mode 100644
index e515a87..0000000
--- a/Workflows/ScriptPadMacros.kmmacros
+++ /dev/null
@@ -1,2258 +0,0 @@
-
-
-
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- MacroActionType
- SetVariableToText
- Text
- %TriggerValue%
- Variable
- Trigger
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Variable
- SourceVariable
- Trigger
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-
-query = ENV['KMVAR_Trigger']
-qend = query.length - 5
-
-noteID = query.slice(2,qend)
-
-if noteID.to_i <1 || noteID.to_i >9
- puts "Invalid range. It has to be from 1 and 9."
-else
-
- $stdout.sync = true
-
- uri = URI("http://localhost:9978/api/note/" + noteID + "/a")
-
- http = Net::HTTP.new(uri.host, uri.port)
- req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
- req.body = ''
- res = http.request(req)
- json = JSON.parse res.body
- puts "#{json['note']}"
-end
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 592217328.72757494
- ModificationDate
- 592294866.07748401
- Name
- Note Paste
- Triggers
-
-
- Case
- Match
- MacroTriggerType
- TypedString
- SimulateDeletes
-
- TypedString
- \;\/(.*)\/np
-
-
- UID
- FDF1DA4C-668C-4E3F-BC71-5C9049952F85
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/9/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025156.76980901
- Name
- Paste from ScriptPad 9
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 974B3D8C-0E4E-4DD9-8EB9-22DAE209D356
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/8/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025150.28370702
- Name
- Paste from ScriptPad 8
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- DA184BFD-C52D-4480-966B-A8CC5E26E3AD
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/7/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025145.56361198
- Name
- Paste from ScriptPad 7
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 72BE7868-3AF7-4CA3-BD8C-ED4010B1DA8D
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/6/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 592217342.87824202
- Name
- Paste from ScriptPad 6
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- DB0D2084-3F88-423D-901F-5D421D37B495
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/1/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025019.38976395
- Name
- Add to ScriptPad 1
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 9719B87D-45BC-4DBC-94FF-FEFBA24E3B59
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/5/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025136.82095301
- Name
- Paste from ScriptPad 5
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 77EE2715-BE13-4AC4-866A-4F595D3786CD
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/4/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025090.56455302
- Name
- Overwrite to ScriptPad 4
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 8B0D76B7-FA79-40E2-99E5-204AD4A9C15E
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/4/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025131.93974996
- Name
- Paste from ScriptPad 4
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 35513CCC-C5F6-405A-819A-E30584C63B21
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/3/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025127.76807499
- Name
- Paste from ScriptPad 3
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- DBBBC2B7-75B3-482C-9757-CB9E43678F5D
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/7/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025064.91837299
- Name
- Add to ScriptPad 7
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 0972927B-726A-4635-9BFA-2C66027F1B36
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/7/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025103.14088905
- Name
- Overwrite to ScriptPad 7
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 08BE1DD3-E7CA-4B55-B5EB-48F98471A866
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/9/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025073.37203205
- Name
- Add to ScriptPad 9
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- ED8A4F32-C63F-4BA9-9305-8F6FF78123F7
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/5/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025094.252967
- Name
- Overwrite to ScriptPad 5
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- FA0B03F7-7703-40CB-9EF9-2E54666517FB
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/3/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025086.61021304
- Name
- Overwrite to ScriptPad 3
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 8ACA995E-D0A6-4FC4-957F-1CE09EA053C9
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- MacroActionType
- SetVariableToText
- Text
- %TriggerValue%
- Variable
- Trigger
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Variable
- SourceVariable
- Trigger
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-
-query = ENV['KMVAR_Trigger']
-qend = query.length - 5
-query = query.slice(2,qend)
-
-$stdout.sync = true
-
-data = { :template => query, :text => ''}
-uri = URI("http://localhost:9978/api/template/run")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = data.to_json
-res = http.request(req)
-print "#{JSON.parse(res.body)["text"]}"
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 592214336.68767905
- ModificationDate
- 592217300.32399595
- Name
- Template Expand
- Triggers
-
-
- Case
- Match
- MacroTriggerType
- TypedString
- SimulateDeletes
-
- TypedString
- \;\/(.*)\/tp
-
-
- UID
- 6634F614-37A7-4695-9AD1-ECCD1562B4A2
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/1/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025078.21679401
- Name
- Overwrite to ScriptPad 1
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 6FA8E5B7-57D6-4F03-8F69-1C4F54621602
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/9/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025111.69123495
- Name
- Overwrite to ScriptPad 9
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 9478F6BF-DF37-48A9-869E-018AB4CAE2D5
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/1/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025119.32164097
- Name
- Paste from ScriptPad 1
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- AD755313-F285-46D7-B7BE-1302D5BB89EA
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/4/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025048.95377195
- Name
- Add to ScriptPad 4
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- AAABA1B4-E16E-4AD9-8E82-BB91AE64DE00
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/8/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025107.25743699
- Name
- Overwrite to ScriptPad 8
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- B1F3C949-F16B-468E-B14A-724C48CA7C30
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/2/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025035.73519695
- Name
- Add to ScriptPad 2
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- A4D8E85A-DD34-4D33-B6D5-CEF3DC058AFE
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/6/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025098.48764098
- Name
- Overwrite to ScriptPad 6
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 70A062CF-CBC4-4E14-B30C-78E9EF988052
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/6/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025060.62147999
- Name
- Add to ScriptPad 6
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 73CB068E-8974-46BD-A6CA-6B292616F506
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/2/w")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025082.56624496
- Name
- Overwrite to ScriptPad 2
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 39
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- C5774218-8387-4F81-8AB0-A07B0ED7B1DD
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/5/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025056.51821101
- Name
- Add to ScriptPad 5
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 3831D61B-0740-4789-BF78-49D27A382679
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/8/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025069.05332506
- Name
- Add to ScriptPad 8
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 7C3A6AFB-8A7B-43B3-A766-E63CE6817AAF
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- Pasting
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-require 'json'
-
-noteID = ARGV[0]
-
-uri = URI("http://localhost:9978/api/note/2/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Get.new(uri.path, 'Content-Type' => 'application/json')
-req.body = ''
-res = http.request(req)
-json = JSON.parse res.body
-puts "#{json['note']}"
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546862629.62573802
- ModificationDate
- 559025123.57072997
- Name
- Paste from ScriptPad 2
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 43
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 0ECBDC39-61DC-43CA-A8A9-B84A30CE11A0
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
- Activate
- Normal
- CreationDate
- 546861876.51359606
- Macros
-
-
- Actions
-
-
- DisplayKind
- None
- HonourFailureSettings
-
- IncludeStdErr
-
- MacroActionType
- ExecuteShellScript
- Path
-
- Source
- Nothing
- Text
- #!/usr/bin/ruby
-
-require 'net/http'
-require 'json'
-note = `/usr/bin/pbpaste`
-uri = URI("http://localhost:9978/api/note/3/a")
-http = Net::HTTP.new(uri.host, uri.port)
-req = Net::HTTP::Put.new(uri.path, 'Content-Type' => 'application/json')
-req.body = {note: "#{note}"}.to_json
-res = http.request(req)
-
- TimeOutAbortsMacro
-
- TrimResults
-
- TrimResultsNew
-
- UseText
-
-
-
- CreationDate
- 546861885.46065998
- ModificationDate
- 559025042.813429
- Name
- Add to ScriptPad 3
- Triggers
-
-
- FireType
- Pressed
- KeyCode
- 41
- MacroTriggerType
- HotKey
- Modifiers
- 4608
-
-
- UID
- 2189DD27-D041-4A27-BB47-44C36EABE1C5
-
-
- Name
- ScriptPad
- ToggleMacroUID
- 3B99C37E-0A48-439D-AB0D-2EE19208C14F
- UID
- EEB32D0A-D914-4F7B-A1A4-2E3EA32B62F6
-
-
-