Skip to content

Instantly share code, notes, and snippets.

@macdrifter
Created December 4, 2012 23:31
Show Gist options
  • Save macdrifter/4210250 to your computer and use it in GitHub Desktop.
Save macdrifter/4210250 to your computer and use it in GitHub Desktop.
{
"actions" : [
{
"class" : "WorkflowActionRequestTextInput",
"parameters" : {
"multiLineOption" : 1,
"title" : "Append to Scratch"
}
},
{
"class" : "WorkflowActionStoreVariable",
"parameters" : {
"name" : "scratch"
}
},
{
"class" : "WorkflowActionGetFileContents",
"parameters" : {
"filename" : "\/Notes\/qqq_Scratch.txt",
"inDropbox" : true,
"ifNotExists" : 1
}
},
{
"class" : "WorkflowActionStoreVariable",
"parameters" : {
"name" : "content"
}
},
{
"class" : "WorkflowActionSetFileContents",
"parameters" : {
"text" : {
"tokenRanges" : {
"{0, 1}" : "scratch",
"{3, 1}" : "content"
},
"type" : "advancedText",
"text" : "\n\n"
},
"inDropbox" : true,
"filename" : "\/Notes\/qqq_Scratch.txt"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment