Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Why this script doesn't work ?

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  Remote Desktop Connection:mac (BETA) 2 console co..  
Author Message
pierre lemercier

External


Since: Apr 27, 2004
Posts: 20



(Msg. 1) Posted: Fri Nov 09, 2007 10:52 am
Post subject: Why this script doesn't work ?
Archived from groups: alt>comp>lang>applescript, others (more info?)

The script:

tell application "Finder"
activate
repeat
set w to display dialog "salary?" default answer "2000"
set wSal to text returned of w
display dialog wSal
--processing of wSal
end repeat
end tell

When running this script on my computer it's impossible to change the
value (2000) inside the display dialog window; why?

Thanks in advance

Pierre

 >> Stay informed about: Why this script doesn't work ? 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 6253



(Msg. 2) Posted: Fri Nov 09, 2007 10:52 am
Post subject: Re: Why this script doesn't work ? [Login to view extended thread Info.]
Imported from groups: alt>comp>lang>applescript (more info?)

This message is not archived

 >> Stay informed about: Why this script doesn't work ? 
Back to top
Login to vote
pierre lemercier

External


Since: Apr 27, 2004
Posts: 20



(Msg. 3) Posted: Sat Nov 10, 2007 12:54 pm
Post subject: Re: Why this script doesn't work ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michelle Steiner <michelle.DeleteThis@michelle.org> wrote:

> By the way, you can simplify the code to this; you do not need the
> Finder for this code:
>
> property wSal : 2000
> repeat
> set w to display dialog "salary?" default answer wSal
> set wSal to text returned of w
> display dialog wSal
> --processing of wSal
> end repeat

That works great! thanks a lot.

Pierre
 >> Stay informed about: Why this script doesn't work ? 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 6253



(Msg. 4) Posted: Sat Nov 10, 2007 12:54 pm
Post subject: Re: Why this script doesn't work ? [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]