cremoer
-
Posts
11 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by cremoer
-
-
Activation of the app is no problem. It’s more, that I want to bring the right document to the front. As I said, the „open file“ action works, although the file is already open. I only thought, there would be some other method. I will try the approach of deanishe... Thanks again!
-
I changed the script a little bit, in that I don't pass the index as argument, but the path of the document as string and furthermore pass this to an "open file" action in Alfred, like so:
app = Application('Tinderbox'); function run() { var items = []; for (var i = 0; i < app.documents.length; i++) { var doc = app.documents[i]; items.push({ title: doc.name(), arg: doc.file().toString() }); } return JSON.stringify({items: items}); }
followed by:
Works, but does not seem to be the most elegant way.
Any other / better ideas to make the chosen document the frontmost / focused document in my app?
-
Absolutely! Cool... thanks a lot 👍
-
Ah, ok. The API is rather new now, since version 8.0.4 I think.
-
3 hours ago, deanishe said:
I don't know about Tinderbox
It’s a hard to describe app, unlike anything...
Something in between note taking, mind mapping, planning, brain storming and so on. You also could create a website with it or track your expenses... as well as write a novel or plan your tasks. I will have a look on the script Filter in a few minutes, when I am home again.
Btw, you live in Essen? Then we are nearly neighbours, I come from Wuppertal 🌨☔😀
-
Normally I use JXA and i can address the filenames for example like this: Application("Tinderbox 8").documents.at(0).name().
Now I want to build some filter, that Alfred shows me also documents.at(1), documents.at(2) and so on, so that I can choose from this list, and jump directly to the file, that I want to edit.
-
Hi there,
I would like to build a little workflow, where I can choose between the running instances (documents) of an application.
Let's say, there are 3 documents open in one app (in separate windows). Can I build somehow a filter, that shows those opened windows and cycles through them, so that I can choose the one, that I want?
-
Super!!!
That's it... I was thinking in the right direction, close to it, but as often, not 100% right.
Thanks a lot 😀
-
Sorry, I read this already, but I don’t understand it somehow. I need an example, if possible.
Or a little example workflow.
I looked really a lot, but don’t get it....
-
Hi there,
I am relatively new to Alfred workflows and I could not figure out yet, how to pass more than one variable - from let's say an osascript(JS) - back to the Alfred workflow, so that I can use them there as {var:var1}, {var:var2} and so on.
Sorry, if this question has been already answered, but I did not find it...
Kind regards, Kay
[SOLVED] Show correct icons in Script Filter
in Workflow Help & Questions
Posted
Hi there,
I have a script, where the array for the JSON, which will be passed to Alfred again, looks like so:
What do I have to fill in for the ???, so that files are shown with their correct icons? PDFs with a pdf icon, jpgs with jpg icon and so on...
Do I have to assign each individual filetype to an icon or is there a more generic way to achieve this?