Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Why this script doesn't work ?

 
   Mac (Home) -> Apple Scripts RSS
Next:  Import email addresses from XP  
Author Message
pierre lemercier

External


Since: Feb 07, 2006
Posts: 23



(Msg. 1) Posted: Fri Nov 09, 2007 3:27 pm
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
Back to top
Login to vote
Michelle Steiner

External


Since: Aug 30, 2005
Posts: 1352



(Msg. 2) Posted: Fri Nov 09, 2007 3:27 pm
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
Back to top
Login to vote
pierre lemercier

External


Since: Feb 07, 2006
Posts: 23



(Msg. 3) Posted: Sat Nov 10, 2007 5:21 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 RemoveThis @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
Back to top
Login to vote
Michelle Steiner

External


Since: Aug 30, 2005
Posts: 1352



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

This message is not archived
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Help with script, please - Here is the script: tell application "Mail" set foo to the selection set foo to item 1 of foo set address_ to address of item 1 of to recipient of foo if not (name of item 1 of to recipient of foo exists) then set AppleScript...

Help with System Preferences script - From an obvious novice: I'd like to have a script for my wife that will 1.open the display preferences and 2.select a certain screen resolution and colors ( i.e. 256/thousands/millions). I can get as far as opening the preferences pane but I can't....

"Insert" script for BBEdit 7.1 - Hello, I want to write a script for BBEdit 7.1 using the command "insert" from the "edit" menu. The purpose is to insert selected files in one open file. But when recording from the "record" menu doesn't give any result. Lo...

Excel Script help needed - Hello, Let me preface this with the statement that I am not that familiar with Macs, I have 20 years experiance with PC's Servers, Unix etc, but not Mac. I do have a somewhat urgent need and hope somebody can help me, I can even pay if that is what i...

Backup script wanted. - Be nice to have a clickable icon on desktop to automate copying a set of files to a disk. For example, to back up Mail messages, and other things, you dive into the Library and grabs things and copy to a USB disk or whatever, could there be a simple..
       Mac (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
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact