Jump to content

douggtg

Member
  • Posts

    5
  • Joined

  • Last visited

douggtg's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Thanks @deanishe running as /usr/bin/osascript (AS) worked! I can now work with the variables and get the rest of my workflow running.
  2. @deanishe I somehow missed this earlier reply... Will try work on this more. Sorry, getting used to this forum
  3. @deanishe the details are in the Workflow I shared. I'm trying to launch 2 chrome browser sessions. One with Incognito, and the other with Regular browser. I am then passing these to 1Password using "1p" integration via Alfred.
  4. @deanisheI hope that this works. If it doesn't I'll try another file share service. http://www.filedropper.com/splitargfromlistfiltertorunscript
  5. I would like to split a comma separated arg value from a List Filter which can then be used in Run Script as variables. arg = 1p name of bookmark1, 1p name of bookmark 2, name of bookmark 1, name of bookmark 2 I know of the Split Arg to Vars utility and can split these into 4 strings, ex: var:string1, var:string2, var:string3, and var:string4... but I can't get these to be used as variables within the Run Script itself. My Run Scripts are not throwing errors, but the strings are empty when I attempt to use them. I understand it is likely hard to solve this without a concrete Workflow. There are many more parts to what I'm building and this is the main part that is stumping me. I've actually solved this problem in a non optimized way using a Conditional. I would like to avoid code duplication and also solve how to use variables in my scripts in general. Other research: I've found "AppleScript Two Words" thread, and that's close, but my strings are not single words as shown above. I'm also using a List Filter rather than query I'm aware of setting variables via Arg and Vars I've also read https://www.deanishe.net/post/2018/10/workflow/environment-variables-in-alfred/. I can apply: Applescript set theBrowser to (system attribute "browser") type command into my script ... but like I said above it will produce empty strings within my script. I've been using the Debugger to view the variables created. It seems like at the script level they are not available yet I'm able to set them somehow? Note: This is part of a larger workflow where I'm actually passing these strings to 1Password as "1p name of bookmark". The reason I want to strip "1p" from the bookmark names is that I am going to re-use those names to launch 1Password application and display the bookmark within the app (ex: keystroke from Applescript or copy/paste) Any help or pointers is greatly appreciated. I am also more than happy to use other scripting languages which can control external apps. I'm familiar with Python, Ruby, Javascript, Shell.
×
×
  • Create New...