Jump to content

Kelson01

Member
  • Posts

    119
  • Joined

  • Last visited

Posts posted by Kelson01

  1. Sometimes I want to keep a snippet that I might use later but I don't want to delete it. I am looking for a way to disable a snippet like disabling a workflow.

     

    Of course you can remove the trigger but I want to preserve the trigger but just have it not do anything so that's why I am looking to disable it.

     

    I see that you can disable snippet groups but I don't see an option to disable an individual snippet. Of course I could just create a group called "Disabled" and leave it disabled but I'd prefer to keep my snippets grouped by context like they are now.

     

    Thanks!

  2. I know about the setting that lets you run AppleScripts instead of opening in the Advanced tab in the file search page of the features tab but I want to create a file filter to search a specific folder for scripts and run those. Most of the time I want to open the script in script editor instead of running the script, that's why I don't just enable this setting. Sure, I could just do ⌘+O on the script within Alfred to open the script in script editor and just enable this setting, but I want to do it right and I don't want to retrain my muscle memory for this.

     

    image.png.5ec5743697785450f6b4e1c5d98d3264.png

     

    How can I run a passed in AppleScript file from Alfred with a file filter?

  3. On 4/15/2022 at 9:09 AM, vitor said:

    I can’t reproduce, but Spotify also doesn’t run properly on a Virtual Machine (and I don’t trust them to install it on my main one) so no idea what the heck they’re doing. All the Workflow does is ask (not tell) apps to quit.


    You haven’t posted the result of the command you quoted. Does Spotify show up as Spotify or something else?

     

    -- I added Terminal to the keep_alive list for this demonstration, Safari is also on the keep_alive list but it is not running. But no matter what apps are and aren't on the keep_alive list, I always get an error when Spotify is not listed there.

     

    This screenshot shows a successful run of the QuitArena workflow with Calendar, Preview & Books open. I ran the command after a successful run of the workflow revealing that the apps were quit. After that I opened Spotify and tried to run the workflow and got an error.

    image.thumb.png.90835ec6b21b9924a5f772f3d678791a.png

     

    Here's it with the same apps that were successfully quit before, with the only difference being that Spotify is running.

    image.thumb.png.56c03cf8acc5e286689faf8d7a597b21.png

     

    -- Okay now i'll add Spotify to the keep_alive list

     

    Here is Spotify on the keep_alive list

    image.png.d23bd298957544956afab8e9a20110e6.png

     

    Now running the workflow with the same apps + Spotify on the keep_alive list

    image.thumb.png.768c2364b9a77d5ab5fccbbcfb553276.png

     

    I've tried this with all different combinations of apps running, I haven't had it fail at any point other than when Spotify was running and not on the keep_alive list.

     

    I've just added it to the keep_alive list and moved on, for me it's not the end of the world. Thanks for the great workflow!

     

    Alfred 4.6.4

    Workflow v22.1

    Monterey 12.3.1

  4. On 1/30/2022 at 7:11 AM, vitor said:

     

    Yo’ve changed plenty of things, only outside the Workflow. One of your apps is the likely culprit. When it happens, run osascript -l JavaScript -e "Application('System Events').applicationProcesses.where({ backgroundOnly: false }).name()" in a Terminal and check what’s running.


    Also:

    • Make sure you’re on 22.1, just released (basically code cleanup).
    • When asking for help, always include your Alfred and macOS versions.

     

     

    Okay, I've narrowed it down to Spotify being the issue. When I run the workflow with Spotify running I get an error, nothing is quit and nothing happens. When I add Spotify to the keep_alive list, the workflow runs with no issue and quits all apps. I've added Spotify to the keep_alive list and the workflow runs without issue. Sometimes it takes a little long after I run it for anything to happen and quit apps, but apart from that no complaints. Sorry for the delayed reply!

     

    Alfred 4.6.4

    I'm using v22.1 of the workflow

    macOS Monterey 12.3.1

     

    Screen Shot 2022-04-15 at 6.26.23 AM.png

    Screen Shot 2022-04-15 at 6.27.42 AM.png

  5. 28 minutes ago, vitor said:

    This sounds like a feature request for Magnet. Technically you could use AppleScript via Alfred to move the windows to new positions, though figuring out which windows to move might be tricky (maybe not, since apparently you’re already keeping track).

     

    But if you’re already using a window manager to do specific things, using it for that step would make sense.

     

    I might be able to figure out a kbm macro for doing this, as long as the windows I'm trying to switch are the ones that have been most recently activated it shouldn't be too difficult to do. I have several window managers installed and I don't think any of them offer this feature and I don't know of any that do, but if anyone knows of something that offers this I would be interested.

  6. 17 minutes ago, Vero said:

    @Undertaker01 Do you back up your Mac using TimeMachine or other backup software? If so, you'll be able to recover your Remote page from a backup there. 

     

    The files are in Alfred.alfredpreferences/remote/pages/ 

     

    Files are stored as .data, and the pages.data XML file contains a reference to all the pages, so you'll need to restore both of these.

     

    Note that if you've added new pages since, you'll need to manually edit the pages.data file, but if you look at the structure, it's very simple so you should be able to copy and paste one of the lines. :)

     

    Backup your preferences for safety before making any of the changes above.

     

    Cheers,
    Vero

     

    Yes! I use time machine.

     

    Thank You! I will look into this!

  7. This workflow quits working from time to time and I can't seem to figure out why.

     

    In this screenshot is the script that is causing the problem and you can see the debugger. The second screenshot is the variables for the workflow. I have not changed anything since I installed this workflow and I'm just now getting this error after it working fine for a long time. Am I doing something incorrectly here?

     

    516435718_qasproblem.thumb.png.b48bb5b2191c66b06dd326ed9c344ff7.png2123404493_ScreenShot2022-01-29at7_55_19PM.png.756188b05c1276fc081750dc9a4fa903.png

  8. It's too easy to delete an entire page instead of a single button. If you have a page selected and press delete, it will delete the page without a "Command Z" option to undo. I've frequently thought that I had a button selected to remove, press delete + enter rapidly (not reading the dialogue, never reading the dialogue, it shouldn't be necessary to read the dialogue) and deleted the entire page instead of a single button.

     

    Is there a way to backup pages other than duplicating them?

    Is there a way to recover a deleted page?

     

    I'd rather deal with buttons entirely on the Alfred remote page, it's more convenient. If it comes to it I could create workflows for each page but I would rather not do that.

     

    Thanks!

  9. I use magnet to move the windows around on my mac, I also use scripting when opening applications with Alfred to determine a window's position when it launches. It would be useful to be able to switch the position of the frontmost windows on the mouse screen. So, the window on the left half of screen would go to the right half and the one on the right half would go to the left half. Can this be done?

     

    Thanks!

  10. On 1/15/2022 at 9:06 AM, deanishe said:

    Then why don't you choose a better snippet keyword that you don't keep typing by mistake?

     

    The snippet is many keypresses of the same key, I never find any issues with in any other application throughout the day. It would be best for me to only enable the snippet in a single application instead of changing how it works as a workaround. I can do that but it wouldn't be my first choice to solve this problem.

  11. Am I able to blacklist/whitelist snippet expansion on a per app basis for individual collections and not only the snippet functionality as a whole in Alfred? I keep triggering a few of my snippets in Final Cut Pro that I use for renaming in Pixelmator Pro and I'd rather not blacklist Final Cut Pro all-together from snippet expansion in Alfred. Is this something I'm able to do?

     

    Thanks!

  12. One of my uses for Alfred remote is memorizing keyboard shortcuts. I would like to be able to change the color of the stock icon Alfred gives to a hotkey button. I don't expect Alfred to be able to do this, but it would be neat if that was added. What I want is to get the location of the icon itself & change the color in a photo editing program. This would better optimize my workflow & help me learn the keyboard shortcut more rapidly. (Sometimes there are shortcuts with the same name that do something different) Is there a location in Finder with the generated icon? I use the title of the button to know what it does and the stock icon that shows the shortcut to see the keyboard shortcut. Is there some way I can copy + paste the icon? I'm looking for a simpler solution than taking a screenshot and removing the background, that is a possibility for this but I want to see if there's a better way first.

     

    Thanks!

×
×
  • Create New...