Jump to content

GuiB

Member
  • Content Count

    285
  • Joined

  • Last visited

  • Days Won

    17

GuiB last won the day on December 7 2019

GuiB had the most liked content!

1 Follower

About GuiB

  • Rank
    Advanced Member

Profile Information

  • Location
    Canada

Recent Profile Visitors

2,106 profile views
  1. Actually, you don't need to edit that line. The `filePath` string that is mentioned here is simply a variable that refers to the `filePath` string from the first line. I mean, the first line is simply there to set a variable to the file path that you want and then this variable is used later in the script. I put it there at the top so it is easy to see and make it clearer. Hope this helps!
  2. @Nabil, for the script, you need to change the `"/path/to/your/image"` in the line: set filePath to "/path/to/your/image" to the path of your file. You can get the file path using the Alfred File Action named "Copy Path to Clipboard" or the 'Copy "fileName" as Pathname' that you can get while doing a secondary click on the file in the Finder and holding the Alt key (like explained here: https://osxdaily.com/2015/11/05/copy-file-path-name-text-mac-os-x-finder/ )
  3. Hey, a little late, but wanted to join the party since this is one of my most wanted feature requests (I think we talked about this multiple time ago...)! Actually, it would be great to remove the restriction completely and allow to assign the same hotkey in any workflow and make a popup to list the possible list of actions when invoking a hotkey which is assigned to multiple actions (like @Jasondm007 is mentioning), but being able to use the same hotkey only in app-specific situation would be a great step! I've been assigning some of my hotkeys from behind (by editing the workflo
  4. @Jasondm007, yes that would be great to be able to call directly the File Action, but at the moment I think the only way is doing GUI scripting using AppleScript like @deanishe said or you can implement your own version of the built-in actions using a shell script or AppleScript. For the Open With, if you want to avoid the GUI scripting route, you can easily do it using a shell script like: open -a "ApplicationName" /Path/To/File
  5. @Jasondm007 honestly I don't have many tricks for trying to get some outputs to the debugger and carefully looking at the information there. Sometimes I look at what is happening before, sometimes after a node, trying to output a variable and analyzing it to see if it's right, adding tests inside the script to try to pinpoint where the problem occurs (see if a loop is looping correctly, if a variable is set correctly...)... In this case, you could see that from the "imc" Keyword node a string was output with paths separated by tab, but on the "Image..." File Action node you c
  6. @Jasondm007, you problem is that when you are directly connecting to the File Action you are receiving a list of files in "argv", but on the second example ("imc") you are sending a tab delimited list of file paths that consist as a single string as input. Therefore, on your first example you can iterate over the list input of you script and not just the first argument ("argv 1"). Here is a modified version: https://d.pr/f/0BOBGT I added a delay to better make sure the item has time to be copied (I didn't have all the items on my clipboard viewer if not), but you can p
  7. @KA_, you can use a "Random" node that outputs a number in the range of 1 to the number of URLs that you have and then you use a "Conditional" node to select the "Open URL" node that is linked to the selected random number. Here is an example: https://d.pr/f/yKRv5w
  8. @cebroski in addition to what @deanishe said, I would recommand to remove also the last part of the scipt so it doesn't close an already opened tab. I mean, remove: -- close the first default tab tell application "System Events" keystroke tab using control down delay 0.2 keystroke "w" using command down end tell However, if I understand well what you want, I think it would be better/easier/faster to use the Alfred's builtin 'Open URL' object. The idea is to have a Keyword object (or another trigger) that connect to 2 'Open URL' objects that send your specific URLs
  9. @slyfox, yes @deanishe is right about the first example whose passing the Arg & Vars to Alfred, but my second example uses Python. Here is the workflow updated again: https://d.pr/f/z8i7VM But to put it here in the forum: My first one uses an expression in the Arg & Vars (ex: `round(({query}+({query}/0.971))*100)/100` ) and pass it to Alfred using `tell application id "com.runningwithcrayons.Alfred" to search "={query}"` My second example uses a Script Filter set to the Python language and what is great is that you can see directly see th
  10. @Twice Bitten, since you are not mentioning which Terminal application you are using, I guess you use Terminal.app. So, to "pass the text into the current Temrinal session window" and keeping your default Terminal integration as it is in Alfred (so you can keep your other action to open a new Terminal Session if you want), you can create a workflow that pass your text to a Run Script object with the script language set to /usr/bin/osascript (AS) and with the script set to: on run argv tell application "Terminal" activate -- comment this line if you don't want to send the Termi
  11. @davidtesler I updated the workflow to strip any non-numeric characters from your query (should better work with different phone number format). I'm not sure if Ring Central does it by itself, but based on @raygan's post above it shouldn't and this should help. New workflow: https://d.pr/f/xmMuSE Best!
  12. @davidtesler I don't have Ring Central and never used it, but I made a workflow based on the above posts. Not sure if this will work, but this can give you a start Workflow: https://d.pr/f/LiaYHQ
×
×
  • Create New...