Re: Automator Newbie Question - Automator Crashing on simple script
Re: Automator Newbie Question - Automator Crashing on simple script
- Subject: Re: Automator Newbie Question - Automator Crashing on simple script
- From: Richard Kendall Wolf <email@hidden>
- Date: Thu, 24 Jan 2013 13:55:36 -0600
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.
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
-- Rich
_______________________________________________
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