-
Posts
110 -
Joined
-
Last visited
-
Days Won
1
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by pixelgeek
-
I have an AppleScript that I am trying to run in Alfred on run set theQuery to "{query}" set theFileList to {} repeat with aFile in paragraphs of theQuery copy (POSIX file aFile) to the end of theFileList end repeat tell application "Freeform" activate repeat with aFile in theFileList set the clipboard to aFile tell application "System Events" to keystroke "v" using command down end repeat end tell end run This runs fine in Script Debugger (I hardcore the query) but when I try to run it in a Run Script object I get [21:34:28.807] ERROR: Anagram Tiles[Run Script] 471:477: execution error: An error of type -4960 has occurred. (-4960) I am assuming that it is a Privacy and Security issue. Alfred doesn't appear to have the correct permissions but it is also not asking for them. I have tried to reset the permissions and then re-enable them but I still get the error. I tried putting the code into two try blocks but it doesn't generate any errors which makes me think that it is a Permissions issue. Anyone had a similar problem?
-
Thanks. The sound or the command line app?
-
Which do you prefer? I don't really have any preference. Whichever makes your work easier. It is from the Alfred Labs sound pack. I'll remove it when I do the next update.
-
I added a check to make sure there was data being sent and I also checked to make sure that the user added a '.' to the extension they entered https://github.com/lolbat/Alfred-Workflow-Read-UTI
-
I'll add some error checking. BTW the link you posted just generates an error.
-
A Workflow to read the UTIs associated with a particular file type. Read me and details are in the repository https://github.com/lolbat/Alfred-Workflow-Read-UTI It is a small tool to help fix a very unlikely problem that is detailed in this thread. It uses a Keyword input and then takes a single file extension. Data is copied to the clipboard. Inspired by @Stephen_C's similar Workflow
-
File filter won't see Markdown files if the File Types is set
pixelgeek replied to pixelgeek's topic in Discussion & Help
I have released an initial version of the Workflow to find the UTIs for a specified file extension. https://github.com/lolbat/Alfred-Workflow-Read-UTI -
File filter won't see Markdown files if the File Types is set
pixelgeek replied to pixelgeek's topic in Discussion & Help
That might be the case. I haven't updated as of yet -
File filter won't see Markdown files if the File Types is set
pixelgeek replied to pixelgeek's topic in Discussion & Help
So I found a quicker way to get a list of UTIs for an extension. It does require the duti command line app in order to run. You can get it from their website or use brew brew install duti Once you have that installed you can just run duti -e .md | grep UTTypeIdentifier | awk '{ print $3 }' and get a list of the UTIs from there public.markdown com.unknown.md net.daringfireball.markdown net.daringfireball I will make a Workflow for it tomorrow. Still suffering from a cold so I think I am at my limit for today 🙂 -
Wow! For someone who talks of the "crudity of the Terminal interface" you know your way around it 🙂 Just a note, its a very helpful tool but it won't fix the issue I reported yesterday. I am going to dig around and see if I can come up with something similar that will help solve that issue.
-
File filter won't see Markdown files if the File Types is set
pixelgeek replied to pixelgeek's topic in Discussion & Help
So it isn't a bug but it is a result of everyone and their uncle declaring a different UTI for Markdown files. I have four different UTIs listed on my Mac net.daringfireball.markdown com.unknown.md net.daringfireball public.markdown Once I added all of them to the File Type list it was able to show the Markdown files in the File Filter. If anyone ever needs to track down the same issue this is the command you can use in the Terminal /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep 'uti:' | awk '{ print $2 }' | sort | uniq This would probably also be an issue if one had multiple apps attempting to create different UTIs for an open file type. -
I have a very basic Workflow that has a File Filter input and an Open object. If I set the File Types in the File Filter by dragging one of my Markdown files into the Types area and then run it the Filter won't display any files. If I remove the File Type it will see the Markdown files and list them. Is this a bug or am I doing something wrong? The Markdown file I am using to set the File Type is from the directory listed in the Scope.
-
solved What format is {query} stored in?
pixelgeek replied to pixelgeek's topic in Discussion & Help
So it is another dynamic placeholder to represent whatever the previous object sent. -
solved What format is {query} stored in?
pixelgeek replied to pixelgeek's topic in Discussion & Help
Give a person some JSON and you confuse him for a day. Teach a person JSON and you confuse them forever. 🙂 I'll give that a try. Thanks. DIdn't even think to look at that. -
Regularly searched folders not showing up.
pixelgeek replied to johnnyriss's topic in Discussion & Help
I ran into this today. The latest Mac update moves the location of Dropbox folders to ~/Library/CloudStorage. This doesn't appear to be searchable via the Finder https://help.dropbox.com/installs/macos-support-for-expected-changes -
Does anyone know what format Alfred uses to propagate the {query} from object to object? Is it JSON? Just curious.
-
Is there a text-based way to build workflows?
pixelgeek replied to erusev's topic in Discussion & Help
Can't you toss all of the files for a Workflow into Git already? As @dfay mentions, the net result is a plist file and Git should be able to do diffs and rollbacks on that. -
Those were quite handy. Thanks
-
So do the split at the Input and then set a variable and then test it later with a conditional?
-
So I assume that Action Modifiers are only available for Inputs. I have a workflow that has two steps that always run and I then have either one or two steps that I want to run conditionally (see attached image). I currently can't see any way to create a conditional branch after the first Run Script so will I have to duplicate the Split Args and Run Script or is there a way to check for a user modifier after the Run Script?
-
Accessibility: Larger Font Size in Alfred Preferences
pixelgeek replied to pseudometa's topic in Alfred Feature Suggestions
So I have to assume that there was no fix added for this? Guess I am going to have to type things in Nova and then paste them into Alfred then -
I am trying to build a similar action in a few different apps as part of an article I am writing. The action I have is: take user input open the Freeform app iterate over each character to build a file path copy the file to the clipboard paste the file Is it possible to iterate over each character of that in Alfred or am I going to have to hand off that data to a script or to KM? Thanks
-
Is there any documentation for the theme export files? I want to manually edit them to get some fine control over placement and spacing but I don't want to mess them up with inadvertent additions or edits
-
solved [SOLVED] Referencing Title and Subtitle in a list filter
pixelgeek replied to giovanni's topic in Discussion & Help
I get it now. I thought initially that there was some way to get the List Filter to emit them as part of the output Thanks -
solved [SOLVED] Referencing Title and Subtitle in a list filter
pixelgeek replied to giovanni's topic in Discussion & Help
Sorry, not describing the issue clearly enough. In his response @vitor says This is the part that I don't understand. When I have a List Filter in a Workflow it doesn't output the title and subtitle for me to get later. How do I make them part of the arguments send by the List Filter? Thanks