sepulchra
-
Posts
390 -
Joined
-
Last visited
-
Days Won
25
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by sepulchra
-
-
My understanding is that you would need to use a script filter and have it show your terminal results appear as multiple results in alfred. This is a little above my skillset but I wouldn't mind learning how this is done as well. I know that @Stephen_C has been branching out. Maybe he can help?
-
-
I don't know if this will get you all the detail you are looking for but could you build a workflow around this:
https://ss64.com/mac/lpstat.html -
-
-
2 hours ago, vitor said:
You don’t need the export PATH, Alfred already includes those. You also shouldn’t need those variable assignments, they don’t look like they’re doing anything. In short, the last line should be enough for everything.
I didn't realize that. I learn something new everyday! And even just a few years ago I don't think I would have been able to build something like this thanks in part to this forum.
2 hours ago, vitor said:
I’m wondering why you split the flow of objects into a new line halfway, as opposed to just continuing to the right. Doesn’t make a difference, I’m just curious if it was to make the screenshot easier to understand see or if there’s another reason.Not for the screen shot, but I like to be able to see the entire flow at a glance if possible. I have 2 x 27" displays and I like to see it all on one. If don't have to scroll, I choose not to scroll!!!!
-
It is a little slow as I have some delays from debugging that I want to play with removing but this is the back end if you are curious:
na is the CLI tool that brett terpstra wrote to write to taskpaper files but i also mirrored it in plain text files using alfred's write to text file -- which is also useful
-
-
is that fun aside of fn something that was added in Sonoma? That is much easier on the hands than ⌃+f3.
-
I have a feeling it has something to do with the way google docs might interact with a hyphen.... it could be formatting the hyphen in a way that interferes with using a hyphen as a trigger.
-
-
This works perfectly. Thank you so much.
-
Thank you ! I'll be back in front of the workstation on Monday and will give this a test run.
-
Stephen, isn't that just the ISO date format?
-
Thanks. I think that is above my brute force and limited skillset but happy to learn if you have the time.
I managed to get a little further down the road yesterday but it is not an efficient solution. I thought it would also help me clarify what I’m up to. Pro Tools, the digital audio workstation I use, opens a marker window on the timeline by typing (all on the number pad)
decimal point
marker number
enter key
so typing
. 10 enter
opens up marker number ten.
I have a separate script that runs after the marker window is open and copies two text fields, saves them to variables, and then writes them to a taskpaper file or text file.
My less than efficient solution last night was using snippets to replace the actual number with the numpad key code, separate them with commas, pass them through the split utility and then pass them as arguments to an osacript:
on run argv set number1 to item 1 of argv set number2 to item 2 of argv set number3 to item 3 of argv tell application "System Events" key code 65 key code number1 key code number2 key code number3 key code 76 end tell end run
As you can see I tried this with numerical values that were 3 digits. I couldn’t figure out how to get it working with digits that could be 1 digit up to 5 digits in length. the above script fails unless the number is 3 digits long.
-
@vitor i hope you can forgive me pinging you and for reopening this, but I remember why I asked this question in the first place. I’ve been puzzling over building a workflow where I need to be able send keys from the numpad. but in this workflow the user has to have the option of inputting a numerical value from 0 - 32000. I was inspired by your Tapback Message workflow where the key combo gets overwritten by the input but as far as I can tell, there is no way to have the number in the variable be a numpad number.
My workaround for this might be having an osascript send key codes, but I would have to have the user type and string of numbers 0 - 32000 and have them replaced by their respective keycodes. There is where I’m getting a little stuck. I could build a list filter where 0 - 9, and replaced with their respective key codes as their argument. I guess I don’t know how to account for the possibility of the input possibly being a 1 digit number, 2 digit number, 3 digit number, 4 digit number, or 5 digit number. I guess I would have to build the list filter with all 32000 permutations and have them be comma separated and use the split argument utility?
Is there a way to send them as multiple arguments where as a script could just send a keycode for 1 key all the way up to 5 keys? My lack of experience is halting me here but maybe not my imagination I guess.
And for context — i have a shell script with multiple variables that would run right after these keycodes are sent.
I hope i’m making sense.
-
that seems like a reasonable solution!
-
I often search the universal action list -- I commonly use the Email action -- but my brain fails me and often types mail instead of email. Is there a way to implement a fuzzy search function that will find "mail" or say the parts of a phrase of a universal action? If I type "tex" it does find actions that have Text in the name and if I type "Mark" it will find "Markdown" but not if I type "down"
-
@Stephen_C not a silly question -- totally a valid troubleshooting step.
@Andrew you are correct. Once I deleted that workflow it resolved my workflow search issues. Thank you. I thought I was losing my mind yesterday.
-
I use "?" to search workflow hotkeys often but suddenly "?" no longer finds any keywords or hotkeys related to workflows. It is still searches all the other preferences, snippets and themes but is no longer finding workflows. Is there a setting I may have disabled?
I'm on alfred 5.1.4 and 13.6.3
-
When i was looking around, it looked like the notes field was scriptable. Can your URL go there?
-
Oh sorry about that. I don't know I missed the numpad symbol there.
-
-
It looks like Reminders can be scripted extensively using applescript:
https://gist.github.com/n8henrie/c3a5bf270b8200e33591
It looks like the notes can be scripted as well.
Workflow for printer status?
in Workflow Help & Questions
Posted · Edited by sepulchra
oh yeah that is a very easy solution!!!
I'm curious though -- is there a simple way to take that very simple shell script that will output multiple lines and have them in a script filter and output multiple lines within the alfred window? Just for learning purposes.