Re: alarms in Calendar or iCal: scripts or automator?
Re: alarms in Calendar or iCal: scripts or automator?
- Subject: Re: alarms in Calendar or iCal: scripts or automator?
- From: Christopher Stone <email@hidden>
- Date: Tue, 18 Jun 2013 09:46:06 -0500
On Jun 18, 2013, at 09:17, Dee Dee Sommers < email@hidden> wrote: So it seems to me that calling an applescript directly is more efficient than going through Automator. Am I wrong?
______________________________________________________________________
No you're not wrong. In fact much of the time Applescript is significantly more efficient than Automator - IF you know how to write the code.
I'd like to see all Automator functions be fully available to Applescript (where applicable). I like Automator, and it has it's uses, but it just seems cumbersome to imbed an Applescript in a workflow.
It's just silly to run Applescript from Automator UNLESS there's something you need in Automator.
A simple example:
tell application "Finder" to set _sel to selection as alias list if _sel ≠ {} then repeat with i in _sel set contents of i to quoted form of (POSIX path of i) end repeat set AppleScript's text item delimiters to linefeed set the clipboard to (_sel as text) end if
I have similar scripts I run from FastScripts with keyboard shortcuts for aliases and posix paths.
Eight lines - about a minute to write.
It would have taken me much longer in Automator, but that doesn't mean Automator isn't precisely the right tool for other jobs.
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden