Jb_Bryant
-
Posts
96 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by Jb_Bryant
-
-
Hmm. my workflow script looks like this. The only thing that is different is I am using my own API key.
# This API key is mine but I'll let you use it for now. # If this stops working, get your own at # https://developer.darkskyapp.com/register KEY="<using my own API key>" # Look up your location at # http://stevemorse.org/jcal/latlon.php # Don't use more than 4 decimal points read LAT LON <<< `/Applications/whereami | awk '/Latitude:|Longitude:/ { printf "%0.4f ", $2 }'` # Set METRIC to true to return temperature in celcius. Otherwise returns in fahrenheit METRIC="false" php -f darksky.php -- "{query}" $KEY $LAT $LON $METRIC
Ya I don't know what I did wrong but it's working now. Thanks!
-
Ok I take back what I said. I must have pasted that in weird or something. I set it up again and it's working now. Thanks!
-
To clarify - it does ask me permission to detect my location the first time I run it, but I still get no results. I copied my working workflow and replaced the LAT and LON section with what was posted.
-
Here is something I added to the workflow so that it would find the weather wherever I am. It requires you to download a program called whereami (that accesses corelocation API's). The developer has posted the source on github and has built and signed the binary so that it works on Mountain Lion.
http://robmathers.github.com/WhereAmI/
(To Note: Place it in /Applications)
add this line into the bash script to replace LAT LON in the workflow.
read LAT LON <<< `/Applications/whereami | awk '/Latitude:|Longitude:/ { printf "%0.4f ", $2 }'`
This doesn't work for me. Shows me what @Nick is getting. The one that @nickwynja posted works great for me. Not sure why I can't get whereami to detect my location. Maybe you left out some sort of set up instructions?
-
In case you weren't aware, David Ferguson created a workflow for this: http://dferg.us/restart-osx-without-relaunch-via-alfred/
-
I have a workflow that runs this bash script to empty the DL folder to the trash.
mv ~/Downloads/* ~/.trash/
That's perfect. I don't really want to use rm as I don't want them deleted immediately. Thanks!
-
Or you must mean a regular script. See how little I know.
-
I don't know much about AppleScript syntax... I guess I should hit the books.
-
I'm assuming this may be done with an applescript or something like that, but could someone give me some guidance as to how I could empty the Downloads folder with a workflow?
-
Is it possible to do this for Safari?
Safari bookmarks are built into Alfred. Even in version 1. No need for a workflow. Turn that on here: http://cl.ly/image/2d3i1p390q2h
-
It'd be awesome to be able to switch the restart command to not reopen applications at startup.
-
Make any headway on this by chance? The workflow doesn't work at all for me anymore, even after I delete the .db file.
-
try
on alfred_script(q)tell application "QuickTime Player"start (new screen recording)end tellend alfred_scriptsubtle difference, but, add "on" in front of the alfred_script(q) line.Ahh I don't know how I missed that. Thanks!
-
I have an extension in Alfred v. 1 that I'm trying to turn into a workflow. The v. 1 extension ran this applescript upon entering "screencast" as the keyword. For the workflow, I'm trying the same thing and it never runs. I've tried:
tell application "QuickTime Player"start (new screen recording)end tellAndalfred_script(q)tell application "QuickTime Player"start (new screen recording)end tellend alfred_scriptAm I doing something wrong? I know it says applescripts "work but not finished for beta" but I don't know what that means exactly. -
This is a very simple workflow, but I just wanted to be able to quickly jump to ~/Library/Mobile Documents/ with a keyword. Here it is:
-
-
I also just deleted and tried installing via AlfPT and it works fine. I'm running OS X 10.7.2, and the latest Alfred build, b70.
FYI - the latest build is b79.
-
What is AlfPT?
-
Still not working for me. Not sure why. I will probably just continue to use ForkLift or the Alfred file browser if I need to access hidden files. I just was trying it out as an alternative.
-
Doesn't work for me either. Relaunches Finder but no hidden files are shown.
-
I have it working... at least for the current temperature. Still troubleshooting the "today" & "tomorrow" commands. Typing "darksky" will give current weather conditions.
The reason it was not working in your workflow is that you were using Applescript and did not have the darksky.php file inside the folder.
Dark Sky (sort of) for Alfred v2 → http://jrhd.me/ME0F
Why use "Run Script" vs. "Run AppleScript"? I'm not too savvy with code/scripts.
-
It actually shows where you got the script in the first screen shot in the upper right corner. Here is the original...
http://hackmake.org/2012/11/dark-sky-alfred-extension
I'm playing around with it as well.
I thought it was in there somewhere I just didn't notice it at first glance haha
I have it working... at least for the current temperature. Still troubleshooting the "today" & "tomorrow" commands. Typing "darksky" will give current weather conditions.The reason it was not working in your workflow is that you were using Applescript and did not have the darksky.php file inside the folder.
Dark Sky (sort of) for Alfred v2 → http://jrhd.me/ME0F
Thanks! I'll give it a try. I only used darksky anyways.
-
I was using an extension before that would output Dark Sky information. I can't recall where I found this:
I was using this applescript:
# This API key is mine but I'll let you use it for now.# If this stops working, get your own atKEY="066c528cb69bbf39636b07b83bbcdb4c"# Look up your location at# Don't use more than 4 decimal pointsLAT="30.2345"LON="-81.5642"php -f darksky.php -- "{query}" $KEY $LAT $LONI'm having issues getting this to work in v. 2. The output is displayed as this: http://d.pr/i/s0TQ.Is this all set up right? Anyone want to give this a shot? -
It may be updating the database. The way it currently runs is.. it checks the last mod time of the database file. If it's changed since the last time the extension ran then it truncates the contents of the database and reloads them all. If you have a lot of bookmarks, it may be taking a second to load them back up. Just a thought?
I've waited quite a bit and it never worked afterwards. I don't feel like I have all that many bookmarks as I store most things in Pinboard. As a workaround I've been deleting the .db file every so often. Kind of a pain though. Also - do you have any idea why Safari bookmarks no longer open in the default browser anymore like they did in Alfred v. 1? Seems Safari is the only option in "Open with" now too.
Dark Sky Workflow
in Share your Workflows
Posted
The modified script doesn't work for me. Just sits here: http://cl.ly/image/0t1g2N3w2W1F
Worked perfect when I reverted back to the old PHP file.