Re: AppleScript-Users Digest, Vol 11, Issue 37
Re: AppleScript-Users Digest, Vol 11, Issue 37
- Subject: Re: AppleScript-Users Digest, Vol 11, Issue 37
- From: António Queirós <email@hidden>
- Date: Tue, 04 Feb 2014 22:51:44 +0000
Thank you for all.
Excuse me for the inconvenience, but the problem stays on the accessibility. As I told in my first message I'm developing some little programs using applescript to help people with visual impairments. When I use display dialog, it is correct for people who is able to see.
If we use the following code:
tell application “Finder”
display dialog “hello”
end tell
Everything is ok.
The message on the screen can be read by voiceover. This happens because there's a window concerned with Find application. I think.
We can't use this method because
an error occurs telling that the time was expired.
When we export the script to an app, this is the case.
Thank you once again,
António Queirós
> Send AppleScript-Users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/applescript-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 AppleScript-Users digest..."
>
>
> Today's Topics:
>
> 1. problem using display dialog in mavericks (António Queirós)
> 2. Re: problem using display dialog in mavericks (koenig.yvan)
> 3. problem with display dialog (António Queirós)
> 4. display dialog problem exporting to app (António Queirós)
> 5. Re: problem using display dialog in mavericks (John C. Welch)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 04 Feb 2014 16:08:06 +0000
> From: António Queirós <email@hidden>
> To:
> "email@hidden"
> <email@hidden>
> Subject: problem using display dialog in mavericks
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hello,
>
> I'm developing some script to help people with visual empairements to turn osx more accessible. In ML I could use "display dialog" to display messages on screen. Unfortunately this command doesn't function asin Mavericks as it did in Ml:
> What's the differences. How can I do the same in this OS?
> When I say "it doesn't function" is when I export the script to app.
>
> Every help will be welcome.
>
> Your sincerely,
>
> António Queirós
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 04 Feb 2014 17:55:37 +0100
> From: "koenig.yvan" <email@hidden>
> To: email@hidden
> Subject: Re: problem using display dialog in mavericks
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Le 04/02/2014 à 17:08, António Queirós <email@hidden> a écrit :
>
>> Hello,
>>
>> I'm developing some script to help people with visual empairements to turn osx more accessible. In ML I could use "display dialog" to display messages on screen. Unfortunately this command doesn't function asin Mavericks as it did in Ml:
>> What's the differences. How can I do the same in this OS?
>> When I say "it doesn't function" is when I export the script to app.
>>
>> Every help will be welcome.
>>
>> Your sincerely,
>>
>> António Queirós
>>
>
> I guess that you are using Display dialog to ask the user to type an answer to a question, not only to click a button.
>
> If I guess correctly, it just prove that you are violating the rule defined by Apple for years.
>
> Display dialog returns a record :
>
> {button returned : theButton, text returned : the text entered}
>
> For years, the record used the alternate layout :
>
> {text returned : the text entered, button returned : theButton}
>
> Apple explained « en long, en large et en travers » that we can't trust upon the order of properties embedded in a record.
> Alas, many users refused to take care of that and continued to code like pigs using :
>
> copy the result as list to {text_returned, button_pressed}
>
> I don't know if it's deliberate but, at last, Apple changed the order of the property embedded in the returned record.
>
> This way, scripts correctly written behave flawlessly and others fail.
>
> Nigel Garvey which code correctly posted :
>
> display dialog "enter something:" default answer theDefaultString buttons {"skip", "set"} default button 1
> set {text returned:text_returned, button returned:button_pressed} to result
>
> As I'm not so expert than Nigel I posted an alternate correct scheme :
>
> set the_result to display dialog "azerty" default answer "qwerty"
> set button_returned to button returned of the_result
> set text_returned to text returned of the_result
>
> Choose your preferred version.
>
>
> Yvan KOENIG (VALLAURIS, France) mardi 4 février 2014 17:51:38
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20140204/ac66fb2a/attachment.html>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 04 Feb 2014 18:02:16 +0000
> From: António Queirós <email@hidden>
> To:
> "email@hidden"
> <email@hidden>
> Subject: problem with display dialog
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> Thank you all, four your kind answers.
> Our problem is not obtaining the result of display dialog.
> Our problems stays on the fact that when we export the script to an app, the message written between “…” doesn’t appear. If we run the script inside the editor everything is ok.
>
> Thank you very much,
>
> António Queirós
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 04 Feb 2014 18:13:28 +0000
> From: António Queirós <email@hidden>
> To: email@hidden
> Subject: display dialog problem exporting to app
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> Thank you all, four your kind answers.
> Our problem is not obtaining the result of display dialog.
> Our problems stays on the fact that when we export the script to an app, the message written between “…” doesn’t appear. If we run the script inside the editor everything is ok.
>
> Thank you very much,
>
> António Queirós
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 04 Feb 2014 14:35:23 -0500
> From: "John C. Welch" <email@hidden>
> To: AppleScript Users <email@hidden>
> Subject: Re: problem using display dialog in mavericks
> Message-ID: <CF16AB21.10DE9B%email@hidden>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 2/4/14, 11:08 AM, "António Queirós" <email@hidden> wrote:
>
>>
>> I'm developing some script to help people with visual empairements to
>> turn osx more accessible. In ML I could use "display dialog" to display
>> messages on screen. Unfortunately this command doesn't function asin
>> Mavericks as it did in Ml:
>> What's the differences. How can I do the same in this OS?
>> When I say "it doesn't function" is when I export the script to app.
>>
>> Every help will be welcome.
>>
>>
>
> sample code would be a big help here.
> --
> It never ceases to amaze me throughout history how a small number of
> determined factionalists have been able to grind progress to a halt for
> amazingly long amounts of time to promulgate pet religious wars. This of
> course explains every problem with Unix.
>
> john c welch
>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
> End of AppleScript-Users Digest, Vol 11, Issue 37
> *************************************************
_______________________________________________
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