sauldraws Posted June 7, 2014 Share Posted June 7, 2014 Hi there; My scripting skills are crap right now, attempting to do something that I believe, should be really simple Trying to open a URL like http://example.com/{Current-Year-As-A-Two-Digit-Number}/{Current-Month--As-A-Two-Digit-Number}/{Current-Day-As-A-Two-Digit-Number}/ in Google Chrome I found this open -a /Applications/Google\ Chrome.app http://example.com/ but I have no idea how to append the date stuff, any help you can provide - I'd greatly appreciate it -saul Link to comment
deanishe Posted June 8, 2014 Share Posted June 8, 2014 You can do it easily enough with any supported language and a Run Script action, passing the result to an Open URL Action. With Python, for example, your Run Script would look something like: from datetime import datetime today = datetime.now() print(today.strftime('%y/%m/%d')) And your Open URL Action would have:http://www.example.com/{query}as the URL. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now