Jump to content

dfay

Member
  • Posts

    1,054
  • Joined

  • Last visited

  • Days Won

    62

Reputation Activity

  1. Like
    dfay got a reaction from deanishe in Use same Editor to open any file   
    Regardless of file type?
     
    In any case, you can do this by creating a custom File Action.
     
    See https://www.alfredapp.com/help/workflows/triggers/file-action/ and https://www.alfredapp.com/help/workflows/triggers/file-action/
  2. Like
    dfay reacted to tjluoma in BBPaste -- create a new BBEdit document from the pasteboard contents   
    Someone just asked for this because the previous link is dead (I'm the worst). So here's a current link:
     
    https://files.luo.ma/alfred/bbpaste.alfredworkflow
  3. Thanks
    dfay reacted to deanishe in Web searches: how to query multiple queries at one.   
    Well why don't you give it a try, and I'll help you. That way, your programming skills might improve  
  4. Like
    dfay reacted to vitor in On-the-fly control of keeping Alfred window open on actioning result   
    The “Don’t close the Alfred window on actioning result” Window Behaviour option choice is always a hard one for me.



    I have multiple nodes in multiple Workflow where I want both behaviours at different times. One way to achieve this is to add a new connection with a modifier that performs the opposite behaviour.



    This is hacky at best, and needs to be added manually each time to each specific option.

    My suggestion is a new behaviour with a global shortcut. Let’s say we’re on a result window that typically closes when picking a result. We double press ⌘ (or any other shortcut) and get a small padlock on the top right (I’ve used icons from my Workflows because I had them on hand).



    The window will stay in the “Don’t close the Alfred window on actioning result” mode until we dismiss it, at which point everything goes back to normal.
  5. Like
    dfay got a reaction from llityslife in Is there a workflow can reveal a opened file in finder   
    At the end of this thread there’s an example of trying to target multiple PDF apps (Skim, Preview and Devonthink) with a single Applescript - it’s doable but requires a lot of testing and customizing - unfortunately Applescript grammar isn’t standard even for these most basic tasks.
     
     
  6. Like
    dfay got a reaction from JJJJ in Is there a workflow can reveal a opened file in finder   
    At the end of this thread there’s an example of trying to target multiple PDF apps (Skim, Preview and Devonthink) with a single Applescript - it’s doable but requires a lot of testing and customizing - unfortunately Applescript grammar isn’t standard even for these most basic tasks.
     
     
  7. Like
    dfay got a reaction from roosterboy in Finder scripts (including opening in a single window)   
    This is a workflow I've cobbled together from various sources, notably some modifications to https://github.com/NapoleonWils0n/bashfinder , which is actually a bash front end for a lot of AppleScript.
     
    It contains the following commands:
     
    fo - open a folder in the frontmost Finder window (also available as a File Action)
    fo:i - open a folder in the frontmost Finder window with Icon view (also available as a File Action)
    fo:c - open a folder in the frontmost Finder window with Column view (also available as a File Action)
    fo:l - open a folder in the frontmost Finder window with List view (also available as a File Action)
    all - open "All My Files" (Sierra) or "Recents" (High Sierra and later) in the frontmost Finder window - this uses a Key Combo action ⌘⇧F
    icloud - open iCloud Drive in the frontmost Finder window - this uses a Key Combo action ⌘⇧I
    fat - choose and open an existing tab or window
     
    rf - open a recent folder in the frontmost Finder window
    fi - set frontmost Finder window to Icon view
    fc - Set frontmost Finder window to Column view
    fl - Set frontmost Finder window to List view
    fg - Set frontmost Finder window to Gallery view (i.e. icon view with big icons and a dark background - this is my own take on a Gallery view, which predated the official one introduced in Mojave)
    fw - Close frontmost window and reopen active tab (i.e. close all tabs except the active one)
    merge - Merge All Windows (same as menu command)
    fcfix - set filename column width to 400
    clip - show the Finder clipboard (I bet you didn't know there was such a thing....)
     
    There is a single environment variable: 
    openInNewTab
    set it to 0 to open in the frontmost window (replacing the existing contents) or 1 (the default setting) to open in a new tab in the frontmost window
     
    By using fo and its variants, you can effectively have Alfred open folders in a single window as requested here: 
    https://www.alfredforum.com/topic/11393-opening-folders-in-the-same-finder-window/?do=findComment&comment=59570
    and here:
    https://www.alfredforum.com/topic/11327-any-way-search-open-a-folder-in-same-finder-window/?tab=comments#comment-59276
     
    v.0.5 (2019-06-08)
    Added fat keyword (was going to use ft but it was constantly confused with FaceTime)
     
    v.0.4 (2018-08-06)
    Added icloud and all keywords
     
    v.0.3 (2018-04-08)
    Added file actions
    Added rf and fw keywords
     
    v.0.2 (2018-04-06)
    Added openInNewTab
     
    Download:
    https://www.dropbox.com/s/u1bchxchlm4c1q3/Finder scripts.alfredworkflow?dl=0
     
     
     
  8. Like
    dfay got a reaction from iGyver in Date Snippets - insert upcoming days (next Monday etc.) - updated for 12.3   
    Dynamic snippets to insert the date corresponding to the upcoming day.
     
    d.nm - next Monday
    d.nt - next Tuesday
    d.nw - next Wednesday
    d.nr - next Thursday
    d.nf - next Friday
    d.ns - next Saturday
     
    So given today's date 2018-07-30, the snippets in sequence produce
    2018-08-06
    2018-07-31
    2018-08-01
    2018-08-02
    2018-08-03
    2018-08-04
     
    d.m+ - first day of next month
    2020-02-01
     
    And dt.n to add the next business day in prose, e.g. Tuesday, June 4, 2019
     
    Download
     
    v. 1.2 
    - added first day of next month
    - added external triggers for M of next week and 1st of next month
    - updated so snippets will paste in Alfred (using the trick here: https://www.alfredforum.com/topic/11765-snippet-triggers-triggered-in-alfred-dont-paste-to-alfred/?tab=comments#comment-61652 )
     
    v. 1.3 2022-03-31
    - updated to use Python 3 for compatibility with MacOS 12.3
  9. Like
    dfay reacted to Jamie in Disable filename copy on action invoke   
    Update: After using the solution described below, I realized there's an option in Advanced preference section, "Selection Hotkeys", that can be set to "Restore previous clipboard item"; this is the simpler way to solve the issue.
     
     
    @dfay Didn't get a chance to look further into this until now, but your solution does work, thank you so much.
     
    The issue with my original workflow setup seems to be that the Hotkey object type with Argument set to "Selection in macOS" will cause that selection to be copied to the clipboard. I've also been able to adapt the script as follows to use Hotkey (Argument set to None) to trigger script to get selection and then Browse in Alfred. Thanks again!
    on alfred_script(q) tell application "Finder" set sel to selection if sel is not {} then set filepath to POSIX path of (item 1 of sel as text) end if end tell end alfred_script  
     
     
     
  10. Like
    dfay got a reaction from vitor in Ability to create new files from File Explorer   
    Cue the complaints: why is Alfred littering my file system with random 0 byte files with no extension?
  11. Like
    dfay got a reaction from deanishe in Ability to create new files from File Explorer   
    Cue the complaints: why is Alfred littering my file system with random 0 byte files with no extension?
  12. Thanks
    dfay reacted to vitor in Add a global setting to strip out Placeholder title from appearing from external triggers   
    I’d be surprised if there are nine more people in the whole user base who want this feature.
     
    Given that, if I were the one building Alfred I’d outright refuse it. This is one of those features that is just asking for people to turn it on to see what it does, and now it changed their Workflows and they don’t understand why, cue bug reports. I strongly believe this is one of those features that on the whole would consume human time, rather than save it.
  13. Like
    dfay reacted to CuteCat in Cursor styles in search bar   
    It'd be great if we could have different styles for the cursor in the search bar! 
    A block style for the cursor would be awesome, and perhaps having the option to thicken the cursor width in the themes section. 
  14. Like
    dfay reacted to Jasondm007 in Tags - Show tags in File Navigation's Preview Panel   
    I'd love to see each file's tags listed in the information provided by File Navigation's Preview Panel. Tags seem more important than most of the info that is currently listed (e.g., app the file opens in, date created, etc.). Why not list the file's tags there? 
     

     
     
    At the moment, Alfred doesn't have an easy way for viewing or modifying tags, and this seems like a good first step that won't demand a complete overhaul of anything.
     
    Ideally, I'd love to see Alfred have its own file action for tags, too, which allowed users to view the file's current tags and modify them as needed (without requiring users to remember their list of tags, etc.). Relying on Finder's "get info" feature is a little clunky, as it requires leaving Alfred, etc. I have some workflows for adding or removing tags that I often use, but they're not very flexible (e.g., they don't tell me which tags are already on the file, they don't dynamically tell me which tags are in use on my system, etc.). Lastly, I'd love to see tags visually incorporated into Alfred's main search results (favorite suggestion here), but I guess that's for another day!
     
    Thanks for listening!
  15. Thanks
    dfay got a reaction from Jasondm007 in Finder scripts (including opening in a single window)   
    Here, try this:
     
    https://www.dropbox.com/s/cn5blbpf4flq70g/Active Windows.alfredworkflow?dl=0
     
    If you don't have Skim installed it may crash.  If so, try setting the environment variable to just Preview
  16. Like
    dfay got a reaction from jpm in Finder scripts (including opening in a single window)   
    This is a workflow I've cobbled together from various sources, notably some modifications to https://github.com/NapoleonWils0n/bashfinder , which is actually a bash front end for a lot of AppleScript.
     
    It contains the following commands:
     
    fo - open a folder in the frontmost Finder window (also available as a File Action)
    fo:i - open a folder in the frontmost Finder window with Icon view (also available as a File Action)
    fo:c - open a folder in the frontmost Finder window with Column view (also available as a File Action)
    fo:l - open a folder in the frontmost Finder window with List view (also available as a File Action)
    all - open "All My Files" (Sierra) or "Recents" (High Sierra and later) in the frontmost Finder window - this uses a Key Combo action ⌘⇧F
    icloud - open iCloud Drive in the frontmost Finder window - this uses a Key Combo action ⌘⇧I
    fat - choose and open an existing tab or window
     
    rf - open a recent folder in the frontmost Finder window
    fi - set frontmost Finder window to Icon view
    fc - Set frontmost Finder window to Column view
    fl - Set frontmost Finder window to List view
    fg - Set frontmost Finder window to Gallery view (i.e. icon view with big icons and a dark background - this is my own take on a Gallery view, which predated the official one introduced in Mojave)
    fw - Close frontmost window and reopen active tab (i.e. close all tabs except the active one)
    merge - Merge All Windows (same as menu command)
    fcfix - set filename column width to 400
    clip - show the Finder clipboard (I bet you didn't know there was such a thing....)
     
    There is a single environment variable: 
    openInNewTab
    set it to 0 to open in the frontmost window (replacing the existing contents) or 1 (the default setting) to open in a new tab in the frontmost window
     
    By using fo and its variants, you can effectively have Alfred open folders in a single window as requested here: 
    https://www.alfredforum.com/topic/11393-opening-folders-in-the-same-finder-window/?do=findComment&comment=59570
    and here:
    https://www.alfredforum.com/topic/11327-any-way-search-open-a-folder-in-same-finder-window/?tab=comments#comment-59276
     
    v.0.5 (2019-06-08)
    Added fat keyword (was going to use ft but it was constantly confused with FaceTime)
     
    v.0.4 (2018-08-06)
    Added icloud and all keywords
     
    v.0.3 (2018-04-08)
    Added file actions
    Added rf and fw keywords
     
    v.0.2 (2018-04-06)
    Added openInNewTab
     
    Download:
    https://www.dropbox.com/s/u1bchxchlm4c1q3/Finder scripts.alfredworkflow?dl=0
     
     
     
  17. Like
    dfay got a reaction from Tony D in Cursor placement in dynamic snippets - {cursor} works in scripts   
    I was just working on a workflow that looks like this
     
    snippet trigger > run script > copy to clipboard and paste
     
    I discovered that (although the Copy to Clipboard object only mentions {date} {time} & {clipboard}) I can have the script generate text containing the {cursor} snippet & Alfred will move the cursor after pasting.  ?
  18. Haha
    dfay reacted to deanishe in Case Converter (including Title Case) - now working on MacOS 12.3   
    Of course not, but why are you asking for a LaunchBar plugin here? I mean, of all the Mac-related forums you could ask on, can you think of one that has fewer LaunchBar users than the Alfred forum?  
  19. Thanks
    dfay got a reaction from Jasondm007 in Finder scripts (including opening in a single window)   
    Yeah I’m actually working on a workflow that will do this, with any app that supports Applescript including preview. Might be a week before i can get it done.
  20. Like
    dfay got a reaction from giovanni in Interacting with certain folders   
    Two quick ways are 1) type ~ (the Unix abbreviation for the user home directory) and it'll bring you into your home dir and you can use ⌘ & number keys to navigate to Desktop, Downloads etc.
     
    2) type 'Downloads or 'Desktop (typing the single quote before the folder name).  This assumes you have turned on Features > File Search > Quick Search
  21. Thanks
    dfay got a reaction from skarchmit in Interacting with certain folders   
    Two quick ways are 1) type ~ (the Unix abbreviation for the user home directory) and it'll bring you into your home dir and you can use ⌘ & number keys to navigate to Desktop, Downloads etc.
     
    2) type 'Downloads or 'Desktop (typing the single quote before the folder name).  This assumes you have turned on Features > File Search > Quick Search
  22. Thanks
    dfay got a reaction from Jasondm007 in Finder scripts (including opening in a single window)   
    Just added one to this workflow, keyword is fat - Finder active tabs - because FT kept bringing up FaceTime.
     
    The only catch is that AppleScript treats every tab as a separate window, so if you have multiple windows, they will all appear in the results.
  23. Thanks
    dfay got a reaction from flome in Date Snippets - insert upcoming days (next Monday etc.) - updated for 12.3   
    Dynamic snippets to insert the date corresponding to the upcoming day.
     
    d.nm - next Monday
    d.nt - next Tuesday
    d.nw - next Wednesday
    d.nr - next Thursday
    d.nf - next Friday
    d.ns - next Saturday
     
    So given today's date 2018-07-30, the snippets in sequence produce
    2018-08-06
    2018-07-31
    2018-08-01
    2018-08-02
    2018-08-03
    2018-08-04
     
    d.m+ - first day of next month
    2020-02-01
     
    And dt.n to add the next business day in prose, e.g. Tuesday, June 4, 2019
     
    Download
     
    v. 1.2 
    - added first day of next month
    - added external triggers for M of next week and 1st of next month
    - updated so snippets will paste in Alfred (using the trick here: https://www.alfredforum.com/topic/11765-snippet-triggers-triggered-in-alfred-dont-paste-to-alfred/?tab=comments#comment-61652 )
     
    v. 1.3 2022-03-31
    - updated to use Python 3 for compatibility with MacOS 12.3
  24. Like
    dfay reacted to deanishe in Alfred4: RichText (RTF) snippets + Evernote = no luck   
    Who cares as long as it works, right?
  25. Like
    dfay reacted to deanishe in Alfred4: RichText (RTF) snippets + Evernote = no luck   
    Looking at the raw data, it's just basic RTF formatting. Title = 34pt size and Heading = 24pt.
     
    So if you format your text to 34pt, in Notes.app it shows style "Title". Same for 24pt and "Heading".
     

     

×
×
  • Create New...