Jump to content

Recommended Posts

In addition to entering dynamic content into scripts it would be much more useful to be able to enter them on the fly.

 

For example I need to create a date 1 year, 2 months and 1 day in the future on the fly I can do that. No need to create and save a script. 

Link to post
Share on other sites
Posted (edited)

After I hit the hot-key to open the Alfred command prompt, I want to be able to enter dynamic content scripts there. 

I hope I am using the right terminology for this. 

So for example, I am working in a word processor document and I want to enter a calculated date in the future:

I hit the Alfred hot-key and I enter {date:long +2y +3M +1d:EEEE} at the prompt, and the calculated date is placed in the document. No need to place it in a script. 

Edited by renforter
Link to post
Share on other sites

Thanks! Need to bare down and learn workflows.

Nice to have this very useful example.  It answers my immediate need. 

Is learning python a necessity? Are other languages used for workflows?

Would Apple Script work too?

 

Link to post
Share on other sites

Alfred doesn't care which language a workflow is written in, but the language has to support certain features to be suitable for writing workflows. AppleScript is a poor choice because it doesn't support JSON.

 

A general-purpose language, like Python or Ruby, is a much better choice because you can do more or less anything relatively easily.

Link to post
Share on other sites

How about Visual Foxpro? Just kidding. That is what I was working in when I quit the programmer world. 

A great language but it didnt fit with MS business model that promoted the crappy Access on everyone's desktop instead. 

What Python framework do you use?

Thanks for your help. 

Link to post
Share on other sites
8 hours ago, renforter said:

What Python framework do you use?

 

The one linked in my sig, but you don't need a framework any more. Alfred used to use XML, not JSON, which was a lot more complicated to do.

Edited by deanishe
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...