• 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: Automator Newbie Question - Automator Crashing on simple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automator Newbie Question - Automator Crashing on simple script


  • Subject: Re: Automator Newbie Question - Automator Crashing on simple script
  • From: Benjamin Waldie <email@hidden>
  • Date: Thu, 24 Jan 2013 15:47:06 -0500

In the meantime, you can work around the issue by inserting the "Run AppleScript" action in place of the "Get Contents of Clipboard" action.  Then, set the "Run AppleScript" action to run the following…

return the clipboard as string

Regards,

-Ben

Ben Waldie
President
Automated Workflows, LLC
484.744.1831
=============================================
  AppleScript * Automator * Workflow Automation
  Products, Training, Custom Development Services
  <http://www.automatedworkflows.com>
  <http://twitter.com/applescriptguru>
=============================================

On Jan 24, 2013, at 3:00 PM, dealTek <email@hidden> wrote:


On Jan 24, 2013, at 11:55 AM, Richard Kendall Wolf <email@hidden> wrote:

Surprisingly, I am able to reproduce your error.

Here is the reason why it's happening ...

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteAttributedString getCharacters:range:]: unrecognized selector sent to instance 0x400a73060'
terminate called throwing an exception

Basically, the NSAttributedString class cluster does not respond to the getCharacters:range selector. This is a programming bug on Apple's end ... there is nothing you can do to fix it.  If I had to hazard a guess, I'd say the "Speak Text" action has code that looks like this:

allchars = [userAttributedString getCharacters:buffer range:everyChar];

but which should read:

allchars = [[userAttributedString string] getCharacters:buffer range:everyChar];

The NSString class -does- respond to getCharacters:inRange and is probably what Apple meant.

I would report this as a bug to Apple.


Wow - thanks Richard - will do....

Funny that this is one of the first things I'm trying to do with Automator.

(Applescript can perform this task quite easily...)




On Jan 24, 2013, at 12:23 PM, dealTek <email@hidden> wrote:

Hello all,

I just joined the list.

using ML 10.8.2

I'm testing out Automator for the first time and the simple test I am doing crashes.

It is a  a simple 2 step process:

- Get contents of clipboard
-  text to audio file ( save on desktop with unique name -  system voice is Bruce)

-  I have a paragraph of text in the clipboard and when I run this is simply crashes. It does leave an audio file on the desktop but it is only 4K in size and does not have any audio

Q: any ideas how to get this working?

--
Thanks,
Dave - DealTek
email@hidden
[db-3]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Automator Newbie Question - Automator Crashing on simple script (From: dealTek <email@hidden>)
 >Re: Automator Newbie Question - Automator Crashing on simple script (From: Richard Kendall Wolf <email@hidden>)
 >Re: Automator Newbie Question - Automator Crashing on simple script (From: dealTek <email@hidden>)

  • Prev by Date: Re: Automator Newbie Question - Automator Crashing on simple script
  • Next by Date: Re: Automator Newbie Question - Automator Crashing on simple script
  • Previous by thread: Re: Automator Newbie Question - Automator Crashing on simple script
  • Next by thread: Re: Automator Newbie Question - Automator Crashing on simple script
  • Index(es):
    • Date
    • Thread