Jump to content

Dr.Peril

Member
  • Posts

    7
  • Joined

  • Last visited

Dr.Peril's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Oh, apologies, yeah there are a ton of Eject Disk shortcuts, I grabbed some Apple Script as mentioned and put it into a shortcut. Just wanted to 'post a solution' ¯\_(ツ)_/¯ I guess that makes this entire thread kinda moot since I didn't land on using Alfred but... maybe someone else will find this useful: -- Copy of script b/c editing on iPhone sometimes nulls that block. to ejectAllDisk() try tell application "Finder" -- Prevent unmounting full disks, those generally are mounted backup snapshots etc. eject (every disk whose ejectable is true and free space is not equal to 0) end tell on error display notification "Failed to eject all disks" with title "Eject all disks" subtitle "Failure" end try end ejectAllDisk -- this is the entry method. on run try with timeout of 30 seconds ejectAllDisk() end timeout on error display notification "Eject is still in progress" with title "Eject all disks" subtitle "Timeout" ejectAllDisk() end try end run
  2. So just by chance this was just posted on SIx Colors: https://sixcolors.com/post/2021/12/run-shortcuts-from-the-mac-command-line/ Basically, you can call shortcuts in the command line. So Alfred isn't really needed, one can run the shortcut directly via ssh.
  3. Hey, thanks for idea, I'll see if it's possible. Yeah, I have an apple script the shortcut runs if it's being run on my Mac, I guess I was just hoping there was a CLI option that would make life a bit easier. Sounds like it might actually be more doing.
  4. Hey all, I'm wondering if it's possible to trigger Alfred via SSH? I would like to trigger the Ejectall feature from shortcuts on my iPhone with the "Run script over SSH" function. I've found some terminal commands to eject all disks like: find /Volumes -maxdepth 1 -not -user root -print0 | xargs -0 diskutil eject but it chokes if /Volumes has a network share attached... :S Thanks for the help!
  5. I'm happy to have another option beyond TE. Smile just doesn't seem to be trying very hard these days but... [shrug] I do have a lot of snippets in TE that I'd like to transfer to Alfred... but doing it manually is gonna blow. I'll do it, but ugh. Is there a simple solution to this problem or? Thanks!
  6. Hi Andrew, Indeed it does. First off, I tracked one of the problems I was having to the Blur background workflow in the themes section. It breaks custom workflow/theme syncing. I wound up finding the Prefs file in Dropbox, moving it to the desktop (thereby deleting it from other Macs), loading that prefs in Alfred, setting things as I liked, then exporting my prefs to Dropbox. Once all my Mac were pointed to the new Dropbox file (sans blur workflow) everything starting syncing as one would expect. I think the take away here is to be careful testing workflows and themes, it seems that it only takes one to muddy up your prefs.... Is there a way to make Alfred create regularly scheduled preference file exports? A system of irritative backups essentially. If there's a scheduled output to folder function the number of files could be easily maintained by Hazel... perhaps having Hazel copy the current prefs file on a schedule is simplest way to go? Thanks for the quick reply!
  7. I have exactly this problem, my prefs file is also in a sub folder called "Backups" (where I dump all the files that don't create their own folder under Apps). It's super irritating... Okayjeffrey, did you ever get this sorted out?
×
×
  • Create New...