Jump to content

patgilmour

Member
  • Posts

    62
  • Joined

  • Last visited

Reputation Activity

  1. Like
    patgilmour reacted to dfay in Browser (SafarI) snippets and Universal Actions   
    Get the current URL as a URL, Page Title or Markdown link.
     
    There are three snippets which paste immediately in the active app, and three Universal Action triggers which will copy to the clipboard when invoked on a URL.
     
    https://www.dropbox.com/s/dl/wisja3ppi2g31aw/Browser snippets.alfredworkflow
     
    Originally based on https://www.asianefficiency.com/technology/save-time-with-expert-level-textexpander-snippets/
  2. Like
    patgilmour reacted to Andrew in Alfred 4.5 Beta: Take a first look at Universal Actions   
    This is an option under Alfred's Advanced preferences > Selection Hotkey... you can disable the clipboard restore.
  3. Like
    patgilmour reacted to Andrew in Alfred 4.5 Beta: Take a first look at Universal Actions   
    Thanks for all the feedback - Just remember that this is a new feature, and I actually have tonnes of stuff lined up to improve and enhance it over the coming releases
  4. Like
    patgilmour reacted to Chris Messina in Custom Scheme/URL for Apple Music App Search (like Spotify)   
    I don't think Music.app supports deep routes like Spotify does. 
     
    You can find the available URL schemes in the app's info.plist file:

    In order to open Music.app to a specific resource, you typically need to generate a full URL with song, album, or artist metadata. You can generate these links using Apple's Services Marketing Tools.
     
    With that tool, you can generate links that will open a specific song in Music.app (but won't perform a search).
     
    To achieve your desired outcome, however, I would recommend @gingerbeardman's Search Apple Music Workflow, which was discussed here.
     
  5. Like
    patgilmour reacted to Vero in [SOLVED] Alfred 4.0.1 - Auto-expand gone in Search Bar   
    @patgilmour Snippet expansion is always disabled in Alfred and Alfred Preferences by default (and would have been in Alfred 3 too), but you can remove Alfred from the ignore list by going to Features > Snippets > Auto Expansion Options > Options, and remove Alfred from the list.
     
    Cheers,
    Vero
  6. Thanks
    patgilmour reacted to Vero in Email Search   
    @patgilmour This isn't possible, but it's something we'll keep in mind when the File Filter object gets an update.
     
    Cheers,
    Vero
  7. Like
    patgilmour reacted to deanishe in Navigate into an Alias   
    Could you explain what you mean by "reference"?
     
    It sounds like you want a list of folders, but with names you've assigned, not the actual folder name.
     
    If so, have you thought about using a List Filter with arg set to the real path?
  8. Like
    patgilmour reacted to Andrew in Exclude folders and filetypes both globally and for file filters   
    @deanishe these have content type 'com.netscape.javascript-source'.
     
    This is why I try to suggest creating file filters which have the file types you are looking for such as images, plain text etc (even replacing out the default file filters with ones with multiple types for general search). Then the node_modules folder doesn't need to be excluded.
     
    I've just spent the last few hours looking at the MDQuery API again, to find if there is a graceful way to exclude the e.g. node_modules folder, and there is still nothing I can do without loading tonnes of files first and subsequently filtering.
     
    One possibility could be that I provide an extremely open ended "advanced" file filter object which has e.g. the following fields:
    A raw metadata query with {query} placeholders. A regex to subsequently filter by path, allowing path matches to be rejected. A "Stop looking when x results have been found". It would have the caveat that with great power comes great uhhh potential slowness.
     
    Cheers,
    Andrew
     
  9. Like
    patgilmour reacted to Andrew in Exclude folders and filetypes both globally and for file filters   
    I've never suggested this - I'm just trying to suggest solutions which work within the bounds and limitations of macOS and its metadata index which Alfred's file search and file filtering is built on.
     
    This is also why I suggested a possible alternative workflow object.
  10. Like
    patgilmour reacted to dfay in Ulysses workflow   
    Here's a cleaner version of ul that makes use of the ulysses-python-client library.  I also changed it to output just the identified as the argument.
     
    #!/usr/bin/python # search for a sheet's title and return its identifier import ulysses import json token = "your token here" ulysses.set_access_token(token) library = ulysses.get_root_items(recursive=True) def all_sheets(g): if hasattr(g, 'containers'): for c in g.containers: yield json.dumps({u'title': c.title.replace('"', '').replace(',', '').replace(':',''), u'arg': c.identifier, u'subtitle': c.type.capitalize()}) for child in all_sheets(c): yield child if hasattr(g, 'sheets'): for s in g.sheets: yield json.dumps({u'title': s.title.replace('"', '').replace(',', '').replace(':',''), u'arg': s.identifier, u'subtitle': s.type.capitalize()}) print('{"items":'+str(list(all_sheets(library[0]))).replace('\\\'','').replace('\'','')+'}') I now have it set up to output to this script to build the Markdown link:
     
    #!/usr/bin/python # create a Markdown link from an identifier import sys import ulysses token = "your token here" ulysses.set_access_token(token) query = sys.argv[1] title = ulysses.get_item(query).title print('['+title+'](ulysses://x-callback-url/open?id='+query+')') Now thinking of what else one can do with the identifier...
     
    (Update) I've added a modifier (ctrl) to send the identifier only to the keyboard -- this can then be pasted into Ulysses group search (command-shift-F) and it will return all sheets that contain a link to the queried sheet. 
     
     
  11. Like
    patgilmour reacted to cblock in Recent Items 4.3 beta 2 for Alfred 4: Finder Recent Items   
    Anyone can just up a mirror please? 
    Drop it here? 

    The download link has been broken for a while... 
  12. Like
    patgilmour reacted to chezluc in Recent Items 4.3 beta 2 for Alfred 4: Finder Recent Items   
    @Carlos-Sz Also would love the link! Thanks!
  13. Like
    patgilmour reacted to arougthopher in Recent Items 4.3 beta 2 for Alfred 4: Finder Recent Items   
    I have tried the Download links as well, but Dropbox says the file does not exist.  
     
    @Carlos-SzCan you please provide a link to the latest download?
     
    Thanks!
  14. Like
    patgilmour reacted to Andrew in Alfred 3.3.2 [818] - Shiny Update Question   
    Nothing more than I finally got around to updating the Mac Mini Alfred build server to macOS Sierra and Xcode 8 with a fresh reinstall. It was running El Capitan and Xcode 7 before this
     
    Cheers,
    Andrew
  15. Like
    patgilmour got a reaction from cands in Duplicate Snippets option   
    I'm using a lot of very similar Snippets (email addresses for projects). It would be very useful to be able to right-click on an existing Snippet and "Duplicate" it, so I can tweak the text in a new Snippet.
     
    Also, as I create a lot of Snippets, the ability to create an Alfred shortcut that would take me straight to the Snippets tab would be useful too.
     
    Thanks!
  16. Like
    patgilmour reacted to Vero in Evernote Workflow 9 beta 4 (Alfred 4)   
    @patgilmour @mboettger1 Could you guys give an example of what's not working for you?
     
    I'm using Evernote 6.10 and everything I've tried seems to work as expected, so if you could provide more details, we should be able to help troubleshoot. If there are any legitimate issues, we can ping the wonderful creator of this workflow for a bit of help
     
    Cheers,
    Vero
  17. Like
    patgilmour reacted to vitor in Get Selection with Keyword not Hotkey   
    That is correct.
  18. Like
    patgilmour reacted to Vero in Send Snippet Directly to Terminal   
    If all you're looking to do is expand your snippets in Alfred, go to the Snippets preferences, click the cog and remove Alfred from the default ignore list.
     
    Keep in mind that this could have adverse effects, e.g. expanding when you're searching in the Snippets Viewer using the snippet's keyword.
     
    Cheers,
    Vero
  19. Like
    patgilmour reacted to deanishe in Send Snippet Directly to Terminal   
    Alfred doesn't expand snippets in its own query box.
     
    TBH, I'd post that as a feature request. Would probably be very useful, and Alfred gets on just fine with other snippet expansion apps.
  20. Like
    patgilmour reacted to geoff in Selectively disable Alfred for certain applications   
    Nope. There's nothing to change in settings. It just works in Photoshop, Illustrator, etc. to hold space and *then* command.
  21. Like
    patgilmour reacted to geoff in Selectively disable Alfred for certain applications   
    I realize this is a very late response and the OP has probably adapted to the solution that was suggested. Perhaps it can benefit someone else.
     
    What I've always done in Adobe apps to get around this is to use SPACE+CMD for the zoom tool, not CMD+SPACE. It doesn't trigger Alfred and still activates the zoom tool. Ditto for SPACE+OPT+CMD to zoom out.
  22. Like
    patgilmour reacted to ctwise in Text Processing Workflow without a Hotkey   
    Thanks to Alfred's brand new method of triggering, yes, you can do this now. I have a text processing workflow which I'm going to have to update because of this. I didn't even realize it until you brought this up - so, kudos.
     
    Here's the script snippet:
     
    on alfred_script(q)
        tell application "System Events" to keystroke "c" using command down     delay 0.3     do shell script "pbpaste" end alfred_script   This will send the current application a ⌘C to copy whatever text is selected. You need to pause at that point for the app to do the copy and put the text on the pasteboard. After that you can do what you want with the copied text. In the above example I just dump it onto stdout.
  23. Like
    patgilmour reacted to deanishe in Text Processing Workflow without a Hotkey   
    In a word, yes.
    In a sentence, "no, but the other ways of doing it are either much more complicated or less reliable."
    If you want to do it "properly", you might consider saving the previous contents of the clipboard and restoring them after you're done.
    pbpaste and pbcopy are for you to get and set the clipboard contents on the command line (or in non-native scripting languages). They don't interact with applications in any way.
  24. Like
    patgilmour reacted to boddicker in How to start creating workflows with JavaScript?   
    Assuming JavaScript knowledge, how can I start creating Alfred Workflows with JavaScript? I'm not quite sure where to look. I see JavaScript workflow creation abilities were added in the new update. There's not a lot of documentation about how to get started since it's a new feature.
  25. Like
    patgilmour reacted to Andrew in Search Field for URLs / History   
    I actually already have a ticket for this, I'll add a note and link it to this thread to see what I can do
     
    Cheers,
    Andrew
×
×
  • Create New...