-
Posts
896 -
Joined
-
Last visited
-
Days Won
24
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by xilopaint
-
-
Update (v2.6)
Improved notifications
-
@deanishe, when I ask you a question you answer at once:
1) what I asked;
2) what I had planned to ask in the next post;
3) what I should have asked but I didn't because I am too dumb for it.
You would make a great teacher. Thank you for being so awesome!
-
Hey deanishe, I am thinking about starting to use Notify.app in some workflows of mine. From what I understand, I have to "install" the app with workflow.notify.install_notifier() so it's copied to data directory.
I don't see the best implementation for this. Should I write my script in a way it checks if Notify.app is present in data directory otherwise workflow.notify.install_notifier() is executed? I feel there's a better way. -
12 hours ago, vitor said:
Update.
Fixed copying a newline with URL.
To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.
Had you not shortened the update interval of OneUpdater?
-
Update (v2.5.1)
Bug fix
Fixed a bug in the batch optimization flow.
-
Update (v2.5):
Ability to track the optimization process
Added script filter to track the optimization process by the keyword progress, especially useful for large files.
-
Workflow.cache_data() worked perfectly. Thanks again @deanishe!
-
6 hours ago, deanishe said:
Yup. Writing the status to a file is probably the best way.
Another possibility is to start a server for your Script Filter to fetch the status from, but that seems like overkill.
I tried to use settings API of alfred-workflow and had some issues. In some tests the last line of the subprocess output was not added to settings.json file. Using "with statements" to write and open the files I had no issues. Is wf.settings somewhat slow or bad for using in loops?
This is working well:
proc = Popen(command, shell=True, stdout=PIPE) page_number = 1 while proc.poll() is None: line = proc.stdout.readline() if "SOURCE PAGE" in line: with open(file_page_number, 'w') as f2: f2.write(str(page_number)) page_number = page_number + 1
But this is not always working:
proc = Popen(command, shell=True, stdout=PIPE) page_number = 1 while proc.poll() is None: line = proc.stdout.readline() if "SOURCE PAGE" in line: wf.settings['page_number'] = str(page_number) page_number = page_number + 1
I would like to use wf.settings if possible, but it seems unreliable in my tests. I should be missing something.
-
Thank you, @deanishe.
I had already read a similar solution here. My problem is my subprocess is executed from a Run Script object and I need the capability of invoking a Script Filter whenever I want to check the progress (what can happen multiple times in a single execution with large files) . How can I better achieve this? Should I write the output of the subprocess in a file and retrieve the data with the Script Filter or there is any better way?
-
The Optimize action of this workflow executes a subprocess called k2pdfopt. While running, this subprocess outputs the progress of the operation (tipically informing the conclusion of each page of the PDF file). Look:
Since the operation can take a long time in larger PDF files it would be very neat to show the progress of the operation in Alfred bar, maybe invoking a Script Filter or something that can inform how many pages were processed. Do you know if it's possible to retrieve the output of the subprocess for this purpose?
-
@deanishe, could you give me a hand here?
-
It works, but the calculator is a bit slow. Any chance to speed up?
-
Not working for me:
[2017-09-01 02:49:16][STDERR: input.scriptfilter] /Users/xxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.1831759F-4FB8-40C5-B097-A5D3D126312C/run.sh:12: command not found: insect
-
1 minute ago, aviaryan said:
Does this mean that "Desktop" is named something else in non-English Macs?
In a non-English macOS "screen shot" is translated in accordance with the language.
-
On 10/7/2015 at 7:12 AM, gb0 said:
Great idea! Not working though. Any help? I am on El Captain.
I don't know if it's your case but the workflow doesn't work if your default macOS language is not English.
-
Is it not possible to bundle the workflow with insect?
-
How can I use a environment variable in a Terminal Command object?
I don't know how to print a environment variable.echo {query} works, echo $my_variable doesn't.
-
@deanishe any plans to release the stable version of Searchio 2.0 in the near future?
-
In my case I don't have Chrome installed so I had to delete the following code block to get it working properly:
if proc = "Google Chrome" then tell application "Google Chrome" set active tab index of front window to tabIndex end tell end if
-
4 hours ago, Aysun said:
I can see the "Search Safari tabs" for a split second, but then it switches to google search for some reason and it's not showing the tabs I have opened. Any idea why this happens?
Do you have Chrome installed?
-
12 hours ago, sr_navarre said:
This workflow sounds great, but I don't understand how to use it. Could someone explain?
Just type the keyword ww and hit ↩ on the tab you want.
-
-
How the workflow works? I don't get to do a search.
-
On 7/21/2017 at 0:28 PM, deanishe said:
Don't leave the forums or quit making workflows on my account. It seems I'm the only person who gets annoyed by having to remind you to post your workflow, not a picture of it, every single time.
I'll stick you on my ignore list, and then everyone's happy.
I'm not happy. The most funny thing in this forum was reading your angry posts in nikivi's threads.
Menu Search
in Share your Workflows
Posted
Menu Bar Search by Benzi Ahamed seems even faster to me.