Remove for mailing list
Remove for mailing list
- Subject: Remove for mailing list
- From: email@hidden
- Date: Thu, 24 Jan 2013 15:04:54 -0600
Bill Kohl
email@hidden
On Jan 24, 2013, at 3:02 PM, email@hidden wrote:
Send Automator-users mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.apple.com/mailman/listinfo/automator-users
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Automator-users digest..."
Today's Topics:
1. Re: Automator Newbie Question - Automator Crashing on simple
script (dealTek)
2. Re: Automator Newbie Question - Automator Crashing on simple
script (Benjamin Waldie)
3. Re: Automator Newbie Question - Automator Crashing on simple
script (Christophe Boudier)
----------------------------------------------------------------------
Message: 1
Date: Thu, 24 Jan 2013 12:00:01 -0800
From: dealTek <email@hidden>
To: "email@hidden"
<email@hidden>
Subject: Re: Automator Newbie Question - Automator Crashing on simple
script
Message-ID: <email@hidden>
Content-Type: text/plain; charset="utf-8"
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
>
> -- Rich
>
--
Thanks,
Dave - DealTek
email@hidden
[db-3]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.apple.com/archives/automator-users/attachments/20130124/195960ab/attachment.html>
------------------------------
Message: 2
Date: Thu, 24 Jan 2013 15:47:06 -0500
From: Benjamin Waldie <email@hidden>
To: email@hidden
Subject: Re: Automator Newbie Question - Automator Crashing on simple
script
Message-ID: <email@hidden>
Content-Type: text/plain; charset="windows-1252"
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]
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.apple.com/archives/automator-users/attachments/20130124/a4fccb3d/attachment.html>
------------------------------
Message: 3
Date: Thu, 24 Jan 2013 22:00:31 +0100
From: Christophe Boudier <email@hidden>
To: email@hidden
Subject: Re: Automator Newbie Question - Automator Crashing on simple
script
Message-ID: <email@hidden>
Content-Type: text/plain; charset="windows-1252"
Hello everybody,
First message here for me too :-)
I tried your workflow with several different texts in the clipboard and… it works for me !?!
Mac OS X Lion 10.7.5 (11G63)
Automator Version 2.2.4 (339.2)
Le 24 janv. 2013 à 19:23, dealTek a écrit :
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.apple.com/archives/automator-users/attachments/20130124/a66b280a/attachment.html>
------------------------------
_______________________________________________
Automator-users mailing list
email@hidden
https://lists.apple.com/mailman/listinfo/automator-users
End of Automator-users Digest, Vol 83, Issue 7
**********************************************
_______________________________________________
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