• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: alarms in Calendar or iCal: scripts or automator?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?
______________________________________________________________________

Hey Dee Dee,

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

  • Follow-Ups:
    • Re: alarms in Calendar or iCal: scripts or automator?
      • From: Dee Dee Sommers <email@hidden>
References: 
 >alarms in Calendar or iCal: scripts or automator? (From: Dee Dee <email@hidden>)
 >Re: alarms in Calendar or iCal: scripts or automator? (From: Alex Hall <email@hidden>)
 >Re: alarms in Calendar or iCal: scripts or automator? (From: Dee Dee Sommers <email@hidden>)

  • Prev by Date: Re: alarms in Calendar or iCal: scripts or automator?
  • Next by Date: Re: alarms in Calendar or iCal: scripts or automator?
  • Previous by thread: Re: alarms in Calendar or iCal: scripts or automator?
  • Next by thread: Re: alarms in Calendar or iCal: scripts or automator?
  • Index(es):
    • Date
    • Thread