Jump to content

GuiB

Member
  • Posts

    366
  • Joined

  • Last visited

  • Days Won

    19

Reputation Activity

  1. Like
    GuiB got a reaction from Marc in Permission Error on External AppleScript Script   
    Hi!
     
    If you set the preference in Alfred to "Run AppleScripts instead of opening" (found in: "Alfred Preferences -> File Search -> Advanced -> AppleScripts [ ]  Run AppleScripts instead of opening), then when you search and open an AppleScript file in Alfred then Alfred will run it directly. So, no need to create a script for that. Just use a Hotkey trigger connected to an Open File action (where you can directly drag and drop the AppleScript that you want to run).
     
    However, if you want to go with creating a script, then you would be better using a Bash script file that run the AppleScript file using the osascript command.
     
    Example:
    #!/bin/bash osascript path/to/your/applescript/file.scpt Also, before you'll be able to use it, you will need to make your Bash file executable using `chmod +x yourFile.sh`
     
    Or instead of creating a Bash file, just use a "Run Script" action in Alfred set to Language "/bin/bash" and with the osascript command inside "osascript path/to/you/applescript/file.scpt" 
  2. Like
    GuiB got a reaction from Alan He in Allow scrolling in preview side of the clipboard history   
    It would be great if the right pane of the clipboard history (the preview side) could allow to scroll to read all the contained text when it is longer than the available space. Sometimes we could have multiple clipboard contents that have some changes further down where we can't see it so we can't really know which one to choose. There's the Large Type (CMD+L) that make it possible sometimes, but other times the text is too long to make it readable using Large Type. So, adding the possibility to scroll the preview would be great! Thanks 
  3. Like
    GuiB got a reaction from Jasondm007 in Allow scrolling in preview side of the clipboard history   
    It would be great if the right pane of the clipboard history (the preview side) could allow to scroll to read all the contained text when it is longer than the available space. Sometimes we could have multiple clipboard contents that have some changes further down where we can't see it so we can't really know which one to choose. There's the Large Type (CMD+L) that make it possible sometimes, but other times the text is too long to make it readable using Large Type. So, adding the possibility to scroll the preview would be great! Thanks 
  4. Like
    GuiB got a reaction from JJJJ in Cardhop Workflow   
    I played around with Cardhop and here is a workflow that I made. I wanted to get more time before sending some workflows to the forum to setup a repository and with an auto-update to the workflow, but I didn't have the time yet for that. And since some people mentioned that they would like a workflow for Cardhop, here is one!
     
    Features:
    Keyword "chc" : Search a contact in Alfred and open it in Cardhop Keyword "chs" or hotkey : Send the query to Cardhop. If the query is empty, it tries to get the selection from the front application and send it to Carhop (In short, you can select the contact information on it's website or email and call "chs" from Alfred and the selection should be sent directly to Cardhop). You can use this action to send the selection or pass a string to your Favorites list (alternative to keyword: chf) or to the Cardhop's Actions (alternative to keyword: cha). Keyword "chf" : Send a string from your Favorites list directly to Cardhop (could be used as a Snippets/Bookmarks list to rapidly write a query to Cardhop that you know gives you the right information in it without the need to write it all). Write your list in the Workflow Environment Variables "Favorites" and separated by semicolon (";"). Ex: Call mom home;Mail boss work;facetime Complicated Name;website businessName;/MyTag;Direction dentist... A variable "{q}" could be used to have a placeholder for a string that you want to set just before sending to Cardhop (ex: "Email {q} work" where {q} could be changed to any name at the time that you invoke the workflow). Tip: To directly activate an action in Cardhop, it seems to delay the input until it has done parsing the query, so you can rapidly press Enter a second time when you select an item from your Favorites list in Alfred and it should run the first action that Cardhop returns. Keyword "cha" : Show a list of possible Carhop actions. If arriving to this function using the Send feature (chs), then the selection or query would be appended to the Cardhop action before sending it. Hotkey to Send selection to Cardhop : If you prefer to send the selection directly to Cardhop with a hotkey instead of a keyword Fallback search to send the query to Cardhop : If you want to write the information directly in Alfred without any keyword before. To make it works, you would need to add the Fallback search into the Alfred Preferences at: "Features/Default Results/Setup fallback results/+/Workflow Trigger/Send to Cardhop" External trigger to send a string to Cardhop from an external script. Other external triggers are set if you want to pop the Favorites list or Actions list from an external script. Append/Prepend string : Add a string before or after the main string before sending using a predefined list or any string if the query doesn't match an item in the list (Could be useful to have a list of predefined group/tags) (See "Workflow Environment Variables" and "Navigation" lists below)
    Workflow Environment Variables:
    Favorites List: See keyword "chf" above AppendToSend : Set a predefined list of string to append using the Append feature (ALT key) PrependToSend : Set a predefined list of string to prepend using the Prepend feature (CTRL key)
    Navigation:
    CMD key : Go to the Send feature Actions List (chs) ALT key : Activate the selected item and append extra string (using the AppendToSend list) CTRL key : Activate the selected item and prepend extra string (using the PrependToSend list)  
    Tip: If you want to use Cardhop as the application to open from Alfred when you are viewing a contact with the Alfred Contact Viewer and press CMD+O: Insert "x-cardhop://show?id={uid}" into the Alfred Preferences at "Features/Contacts/Advanced/URL Handler" instead of using "addressbook://{uid}". This should do the same as the keyword "chc" but without the need to write the keyword before searching for a contact and use directly the built-in contact search of Alfred
     
    Download Link (latest version): https://d.pr/f/SX4Sn7
     
    Download Link (older version, latest version using Python 2): https://d.pr/f/rQTPtu
     
    Have fun!
  5. Like
    GuiB got a reaction from iandol in Alfred 5 Sneak Peek - Take a look at what's coming in Alfred 5 :)   
    A new Workflow Gallery website is in the work and will be released after v5, as mentioned by @Vero in this post:
     
     
     
  6. Like
    GuiB got a reaction from darioangelo in Alfred 5 Sneak Peek - Take a look at what's coming in Alfred 5 :)   
    A new Workflow Gallery website is in the work and will be released after v5, as mentioned by @Vero in this post:
     
     
     
  7. Like
    GuiB got a reaction from ajyey in Alfred 5 Sneak Peek - Take a look at what's coming in Alfred 5 :)   
    A new Workflow Gallery website is in the work and will be released after v5, as mentioned by @Vero in this post:
     
     
     
  8. Like
    GuiB got a reaction from Vero in Alfred 5 Sneak Peek - Take a look at what's coming in Alfred 5 :)   
    Hey @Andrew and @Vero ! Congrats on the new version! This looks great and I’m loving the attention to details!
     
    "Automation Tasks" looks to be a good idea to make Workflows work without breaking on system upgrade by keeping the actions maintained with Alfred. I’m looking forward to how this develops and also to the release of the task development tool!
     
    Again, congrats and all the best!
  9. Like
    GuiB got a reaction from Alan He in Alfred 5 Sneak Peek - Take a look at what's coming in Alfred 5 :)   
    Hey @Andrew and @Vero ! Congrats on the new version! This looks great and I’m loving the attention to details!
     
    "Automation Tasks" looks to be a good idea to make Workflows work without breaking on system upgrade by keeping the actions maintained with Alfred. I’m looking forward to how this develops and also to the release of the task development tool!
     
    Again, congrats and all the best!
  10. Like
    GuiB reacted to Vero in Alfred 5 Sneak Peek - Take a look at what's coming in Alfred 5 :)   
    We've just published the first sneak peek of Alfred 5's features!
     
    Creating workflows will be faster, more user-friendly and accessible than ever with Alfred's new Palette, Prefabs, Automation Tasks and a totally revamped Workflow Editor. 
     
    Early Access begins later this month. We can't wait to share this new release with you!  
     
    https://www.alfredapp.com/alfred-5-whats-new/
     
    Feast your eyes on the new Workflow Editor with all the goodness that will make creating workflows even more efficient!
     

  11. Thanks
    GuiB got a reaction from Lexyz in Using Marta (or an alternative Finder app) with Alfred   
    @bivalvegruff, the output you wrote means that the preference is not set on you computer, you should see an output that only mention: org.yanex.marta
     
    Did you sent the second command as well? ( defaults delete -g NSFileViewer ) This one is meant to be use if you want to revert back to Finder and should then give the output that you have now when writing defaults read -g NSFileViewer . You can try again with the first command only ( defaults write -g NSFileViewer -string org.yanex.marta; )
     
    Here is what I get on my side in the Terminal:
    $ defaults write -g NSFileViewer -string org.yanex.marta; $ defaults read -g NSFileViewer org.yanex.marta  
  12. Thanks
    GuiB got a reaction from Lexyz in Using Marta (or an alternative Finder app) with Alfred   
    @bivalvegruff, did you restart your computer or session?
     
    If you write in terminal defaults read -g NSFileViewer you get org.yanex.marta as output?
     
    Myself, I'm always opening the files using the Reveal in Finder action (CMD+Enter on a standard search or with the Reveal in Finder file action) and it works great on my side. However, if you open your file using only Enter while doing the file search then it seems that you need to also set another preference to Marta like:
     
    defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType="public.folder";LSHandlerRoleAll="org.yanex.marta";}' This is all the same as what is explained at the Forklift website, so you can have a look here to have some more info: https://binarynights.com/manual#fileviewer
     
    Hope this helps!
  13. Like
    GuiB got a reaction from Jasondm007 in Add a workflow object (or add the option to the "Split Arg to Vars" object) that would split the query to an array   
    Alfred workflow objects can work on array. For example, selecting multiple files in Finder and calling a "HotKey" trigger with a multi-selection will pass the files to an "Action in Alfred" workflow object and this latest object will interpret the passed query as multiple files (like an array).
     
    However, when this query is manipulated and then moved back in Alfred domain from an object that only allows a single string return type (like the return of a "Arg and Vars" object or when we set the query into an environment variable) then this multi-argument query is converted to a single argument query with the items concatenated to a single string delimited with tab. Which is fine since this is a restriction from those methods, but then the problem is that we can't make use of the Alfred workflow objects that can interpret those multi-arguments query since it is now passed as a single argument.
     
    We can work around this by using a "Run Script" and splitting the string into an array and then call from the script the wanted Alfred action using AppleScript or JSX, but we can't move back to chain into another Alfred workflow object or we need to do the same procedure with another "Run Script" and call from inside.
     
    Therefore, it would be great if a new Workflow object could be created or the "Split Arg to Vars" could be modified to allow to output and pass a multi-arguments query to a chained object. For example, this would make it possible to pass an array of strings to be used by the new Text action with the "Action in Alfred" object and make workflows specific to array of strings. Also, this could make it easier for people to receive a value from an "External Trigger" and split it and use the standard Alfred workflow objects.
  14. Like
    GuiB got a reaction from aarblaster in Cardhop Workflow   
    I played around with Cardhop and here is a workflow that I made. I wanted to get more time before sending some workflows to the forum to setup a repository and with an auto-update to the workflow, but I didn't have the time yet for that. And since some people mentioned that they would like a workflow for Cardhop, here is one!
     
    Features:
    Keyword "chc" : Search a contact in Alfred and open it in Cardhop Keyword "chs" or hotkey : Send the query to Cardhop. If the query is empty, it tries to get the selection from the front application and send it to Carhop (In short, you can select the contact information on it's website or email and call "chs" from Alfred and the selection should be sent directly to Cardhop). You can use this action to send the selection or pass a string to your Favorites list (alternative to keyword: chf) or to the Cardhop's Actions (alternative to keyword: cha). Keyword "chf" : Send a string from your Favorites list directly to Cardhop (could be used as a Snippets/Bookmarks list to rapidly write a query to Cardhop that you know gives you the right information in it without the need to write it all). Write your list in the Workflow Environment Variables "Favorites" and separated by semicolon (";"). Ex: Call mom home;Mail boss work;facetime Complicated Name;website businessName;/MyTag;Direction dentist... A variable "{q}" could be used to have a placeholder for a string that you want to set just before sending to Cardhop (ex: "Email {q} work" where {q} could be changed to any name at the time that you invoke the workflow). Tip: To directly activate an action in Cardhop, it seems to delay the input until it has done parsing the query, so you can rapidly press Enter a second time when you select an item from your Favorites list in Alfred and it should run the first action that Cardhop returns. Keyword "cha" : Show a list of possible Carhop actions. If arriving to this function using the Send feature (chs), then the selection or query would be appended to the Cardhop action before sending it. Hotkey to Send selection to Cardhop : If you prefer to send the selection directly to Cardhop with a hotkey instead of a keyword Fallback search to send the query to Cardhop : If you want to write the information directly in Alfred without any keyword before. To make it works, you would need to add the Fallback search into the Alfred Preferences at: "Features/Default Results/Setup fallback results/+/Workflow Trigger/Send to Cardhop" External trigger to send a string to Cardhop from an external script. Other external triggers are set if you want to pop the Favorites list or Actions list from an external script. Append/Prepend string : Add a string before or after the main string before sending using a predefined list or any string if the query doesn't match an item in the list (Could be useful to have a list of predefined group/tags) (See "Workflow Environment Variables" and "Navigation" lists below)
    Workflow Environment Variables:
    Favorites List: See keyword "chf" above AppendToSend : Set a predefined list of string to append using the Append feature (ALT key) PrependToSend : Set a predefined list of string to prepend using the Prepend feature (CTRL key)
    Navigation:
    CMD key : Go to the Send feature Actions List (chs) ALT key : Activate the selected item and append extra string (using the AppendToSend list) CTRL key : Activate the selected item and prepend extra string (using the PrependToSend list)  
    Tip: If you want to use Cardhop as the application to open from Alfred when you are viewing a contact with the Alfred Contact Viewer and press CMD+O: Insert "x-cardhop://show?id={uid}" into the Alfred Preferences at "Features/Contacts/Advanced/URL Handler" instead of using "addressbook://{uid}". This should do the same as the keyword "chc" but without the need to write the keyword before searching for a contact and use directly the built-in contact search of Alfred
     
    Download Link (latest version): https://d.pr/f/SX4Sn7
     
    Download Link (older version, latest version using Python 2): https://d.pr/f/rQTPtu
     
    Have fun!
  15. Thanks
    GuiB got a reaction from GatorMapi in How to paste text in a workflow   
    To paste text from a workflow you can use the "Copy to Clipboard" Ouput object, write the content that you want in the text field (where it's written "{query}" by default) and check the "Automatically paste to front most app" toggle. You can also check the "Mark item as transient in clipboard" if you want that Alfred clear this content from the clipboard
  16. Thanks
    GuiB got a reaction from GatorMapi in Workflow to simulate using a keyboard shortcut on highlighted text   
    @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!
  17. Thanks
    GuiB got a reaction from GatorMapi in Cardhop Workflow?   
    Hey @able, @Ehler and everyone! I uploaded my Cardhop Workflow to the workflow section of the forum if you want to have a look and try it and with some tips to use Alfred with Cardhop. I hope you like it! Best!
     
     
  18. Like
    GuiB got a reaction from kagi in Alfred 4.5 Beta: Take a first look at Universal Actions   
    @kagi, I don't know if you've read all the posts above, but @Andrew added the possibility to pop the "open with" action directly with the latest beta update (called "Jump to" in the "Action in Alfred" workflow object). So, if you want to use it right away you can do it!
     
    Here is an updated version of my workflow I gave you, but with this new feature: https://d.pr/f/Qb4Pn2
  19. Like
    GuiB got a reaction from Chris Messina in Alfred 4.5 Beta: Take a first look at Universal Actions   
    Then maybe you should set a default application to use for those kind of files. (Get Info -> Open With -> The Unarchiver)
     
    Or you can use the "Open with" Universal Action to specify with which application you want the file to be opened. Or you can define a File Action that would work with Zip files and ".spa" files and that would be set to open the file directly in the specified application. Here is an example with the The Unarchiver: https://d.pr/f/nT46SC
     
    You may need to add one of your ".spa" file into the File Action type that it will show for. I dropped a file with a ".spa" extension on my side, but since I don't have any application that work with this kind of file, I'm not sure if the metadata are set correctly...
     
    Beside, even if Alfred have a built-in unzip action, then there's good chances you won't be able to use it with your ".spa" file since this is not a standard Zip archive type. So, I think the workflow to open with The Unarchiver or to set the default app for this kind of file to The Unarchiver are your best options.
  20. Thanks
    GuiB got a reaction from JeffreyAutomation in Is it possible to program hotkeys for file actions (instead of the default command+1-9)?   
    I actually also try to use Alfred as much as possible instead of Finder and for myself (and regarding your use case) I can't see what could be more optimal than having a direct shortcut to send your selected file to your editor of choice. Which is what I sent you in my first workflow example. You can put your selection inside the Alfred file browser to the file that you want to send to your favourite text editor and directly do the shortcut which will send it directly instead of needing to go inside the Actions panel.

    It's up to you if you prefer going into the Actions panel, but to show you how I'm doing it, I've configured a Hotkey trigger (set to work only when Alfred has the focus and that sends the Selection in macOS) with the Hotkey set to CMD+E ("E" for Edit) that send the select item directly to my editor of choice.

    Here is an updated workflow with a specific Hotkey trigger set to work the way I'm telling you (look at the first one, top left in the workflow). Set you preferred key combination (CMD+E on my side) and try it when you select a file in the Alfred File Browser.

    The difference between that one and the other is that the second Hotkey (like the first workflow I sent you) would work from anywhere, so it could be useful if you want to send the selection from Finder or inside Alfred or other file browser, but by restricting it to only Alfred you can configure a simpler hotkey that won't interfere with others.
  21. Like
    GuiB got a reaction from deanishe in Some Way to See Long Path Names   
    Actually, this has never been the case on my side and I'm using the Large Type feature a lot as some kind of preview for my workflows that I've been popping and closing using CMD+L (pop) and ESC (close) and keeping Alfred always open so I can move to another result and preview it with CMD+L again...

    But now that you say that, I see in the "Large Type" section in "Alfred Preferences -> Features" there's a toggle to "Auto Hide Alfred when showing Large Type" which should be active on your side... I find it very useful to have it unchecked so I can use the Large Type feature as a preview, but yes now I see that this could be a problem for this feature requests.
  22. Like
    GuiB got a reaction from kagi in Alfred 4.5 Beta: Take a first look at Universal Actions   
    Yes, that would be great! In the meantime, here is my workaround: https://d.pr/f/6uP48n
     
    In short, the workflow simply connect a HotKey workflow object (that work on the selection) to a "Run Script" that contains the script:
    on run argv tell application id "com.runningwithcrayons.Alfred" to action argv tell application "System Events" to keystroke "open with" & return end run  
  23. Like
    GuiB got a reaction from deanishe in Alfred 4.5 Beta: Take a first look at Universal Actions   
    Yes, fixed on my side with this build!
     
    Look inside the "Action in Alfred" workflow object, there's now a "Jump to" section. This is used to directly "jump to" a specific action that has a second panel (ex: Open with..., Copy/Move to..., Open URL in...).
  24. Like
    GuiB got a reaction from Jasondm007 in Alfred 4.5 Beta: Take a first look at Universal Actions   
    So, when is the 4.6 release date??
  25. Like
    GuiB reacted to Andrew in Alfred 4.5 Beta: Take a first look at Universal Actions   
    @Jasondm007 I actually have some pretty hefty plans for Universal Actions - I sneaked the Jump To feature in at the last moment for 4.5, so for now, it's going to be basic for the majority case of default actions... I can't wait to share some future bits
×
×
  • Create New...