-
Posts
23 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by rootscript
-
-
Another alternative using your suggested .md file:
/Applications/Mou.app/Contents/MacOS/Mou Math.md &
This shows the markdown & the rendered output! I guess this thread is developing into a list of terminal entry viewers, that we can access with Alfred.
-
@rice.shawn Thank you, this opens up a lot of possibilities (I replied in the other thread, but posting an example here to maintain some clarity)
Action > Run Script
zsh escaping everything
# this will output your query & display it as rendered html
echo -n '{query}' > ~/index.html && cd ~ && qlmanage -p index.html
#this will display it as syntax highlighted code instead (as long as you have QLColorCode.qlgenerator)
qlmanage -p index.html -c .html -g /Users/rootscript/Library/QuickLook/QLColorCode.qlgenerator
This thread is turning out to be a lot of {query} output fun
-
@rice.shawn Thank you, this opens up a lot of possibilities )
@CarlosNZ Here is an example of outputting a {query} and displaying with quicklook. && another example forcing the {query} to use whatever ql generator you have installed:
Action > Run Script
zsh escaping everything
# this will output your query & display it as rendered html
echo -n '{query}' > ~/index.html && cd ~ && qlmanage -p index.html
#this will display it has syntax highlighted code instead (as long as you have QLColorCode.qlgenerator)
qlmanage -p index.html -c .html -g /Users/rootscript/Library/QuickLook/QLColorCode.qlgenerator
This thread is turning out to be a lot of {query} output fun )
-
You guys will probably like this:
In terminal try installing 'terminal-notifier':
sudo gem install terminal-notifier
Then try sending a notification like this:
terminal-notifier -message "Test message goes here" -title "Test Title" -subtitle "My nice subtitle"
I think this is a VERY useful addition (for small notifications), that we can use in our workflows.
-
@David Ferguson & @Tyler Eich - Thanks for your suggestions.
I agree. Some Growl themes will have a maximum height set on the popup window but many do not. I've used it in the past to display data that fill the entire height of the screen.
David, This sounds very useful for big/long notifications. Can you post an example workflow, with a explanation, please?
-
@CarlosNZ
Here is an old xcode project I found that has a little cocoa framework example called:
HUDWindow.app (I don't think it uses webkit)
@Andrew
I appreciate that you guys must be busy with a million different requests. Maybe there is someone (with a little xcode experience) who would be willing to create a little osx app from the supplied code (like the example HUDWindow.app) that will read an output from Alfred and just display it.
Anybody willing to help out?
-
@Andrew, How does Alfred style its Themes then, is that completely different to Large Type; could a 'new' Large Type be created in the same way as Alfred Themes (i have no need to add WebKit, if it already isn't being used).
All I'm really suggesting is another popup box (like Alfreds) built the same way, that can display an output like 'Large Type' and 'Post Notification can'.
-
There really isn't a way to custom the large type feature. Perhaps you could use Growl for managing something like this. Some Growl themes have a max height set so it would truncate the data but a lot of them don't.
@David Ferguson | @Andrew
All I managed to find was 'Alfred Preferences Defaults.plist'
<key>appearance.largetype</key>
<dict>
<key>autohide</key>
<false/>
<key>style</key>
<integer>1</integer>
</dict>
It would be really cool, if we could change the position, font, and colours; just like we can for the rest of the Alfred Theme.
If it isn't too much trouble, could you expose the settings to us?
-
Need some help getting started with this workflow.
Essentially what I need is this:
[1] I'll be looking at a website in Chrome, and I would like to see how it will look on an Ipad or Iphone, via IOS Simulator.app (it comes with xcode).
[2] I have lots of local index.html files I'm working on. I would like to open the selected file in IOS Simulator to se how it will look on an Ipad.
Can anyone, give me an outline of how to achieve these workflows, please?
-
@Andrew
Is the current debug mode available to us?
-
@twinpeaks
I can see where you are coming from. I started using Alfred at v2, so I keep finding links to "Great" Alfred extensions; that are useless to me.
At least now with a little effort & some advice from you I can at least extract any applescripts, and switch settings etc...
After reading your reply, I think a better utility would be an Alfred (shell script / applescript) extractor. Even that isn't really needed, maybe all thats really needed is a little post explaining how.
-
@David
Ok so I tried renaming the someaction.alfredextension to someaction.alfredextension.zip
Extracted it and get a couple of .plist
If I open in PlistEdit Pro I can see a bunch of <keys>
and of course some terminal commands and some applescript.
Surely converting a v1 alfredextension to a v2 workflow could be automated a little?
-
There isn't a way to just click a button and convert them but alfredextensions can typically be converted rather easily. Most were just shell scripts that you could copy and paste the code from the extension into a "Keyword to Script" workflow template and have most of the work done.
So if you have a someaction.alfredextension
What do you open the .alfredextension with to copy from ?
Do you have to have a copy of Alfred v1 to do this?
-
You can also try this:
cd ~/Desktop && mkdir {query} && cd {query}
or even standard
cd ~/Desktop; mkdir {query}; cd {query}; etc.......
-
Does Alfred output a log file anywhere, when an action is carried out?
or
Is there a debug mode or something similar that outputs events/messages to console?
thanks
-
Try 'Actions > Run Script'
@Tyler Eich
Thank you, that works (silently)
-
ok so a test workflow
keyword:
logg
Terminal Command:
echo -n '{query}' > ~/Desktop/log.txt
and in GeekTool.app create a geeklet that displays the contents of log.txt on the desktop.
alfred 'logg testwords'
This WORKS as a proof of concept.
Only issue is there doesn't seem to be a 'Terminal Command' silent mode in Alfred anymore ??
-
@David Ferguson
When I saw the 'Large Type' option in Alfred, I thought GREAT, an area I can output results to, but as discussed above found there is no way to customise it.
Maybe an alternative could be outputting to something like 'GeekTool.app'. So we could create a Geeklet where ever we want on the desktop, and have complete control over its position, size, fonts, etc...
What do you think?
Obviously it would be easier if there was a customisable Notification area built into Alfred; When I saw the 'Large Type' option I thought like that looked liked the start of something that could be really useful.
-
In relation to this 'IOS Simulator', I would love to have a workflow that opens a web url or file.html in Safari (with IOS Simulator).
Would be great for web developers to test files quickly with Alfred.
-
@Andrew
I upgraded to v2.0.2 (178)
added search scope:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/
I copied 'IOS Simulator.app' to /Applications/ to test.
when i 'afred' 'iphone' i get returned:
IOS Simulator
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
&
iPhone Simulator.app
/Applications/iPhone Simulator.app
when i 'alfred' 'ios' i get:
IOS Simulator
/Applications/iPhone Simulator.app
So my question is when alfred searches, does it search ny the actual app name as we see it, or by the 'Bundle name' in the apps info.plist (which happens to be 'iPhone Simulator')?
-
I just copied:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
to
/Applications/iPhone Simulator.app
or try doing a link (hard, soft, sym link etc...)
-
I love the idea of outputting to 'Large Type' rather than to 'Growl' or 'Notification Center'.
Looking at workflow outputs, there is an option to output to 'Large Type', which fills the screen with whatever text you specify.
How do I specify the maximum size font used for this?
or is there a way to choose where this Large Type appears, and how large the area is?
I am looking to output text & results to a nice 'Little Box' with text that is a little more sensibly sized.
Thanks.
Creating a HUD
in Workflow Help & Questions
Posted
Hello Shawn,
We seem to be aiming for the same thing, but I don't think you are get going to get exactly what you want 'quickly' in the forums. You could look at the 'website pop-up' again; I've messaged you a link that is interesting, that shows an example of what it could be used for. I played around with this for a while, and tucked it away for use later.
I really do believe that your vision of an addon/helper for Alfred, isn't as well received as it should be; for what ever reason that is, your guess is as good as mine.
I think you may resort to xcode in the end; I'm new to xcode, but have stared writing/learning to write my own HUD. In a day, I've only got as far as a nice transparent window of any size, that appears where ever I want on screen. I've added the growl.framework to my HUD.app, and I can send messages to growl from it.
But I'm still driving towards a large on screen HUD which can display a lot of formatted info. I need to figure out how to get my HUD app to receive input from other sources, such as Alfred. If you would like to help out, let me know. It may end up being more than just a better 'Large Type', or a helper app for Alfred; lets see.
Best Regards