• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dialog


  • Subject: Dialog
  • From: ba95 <email@hidden>
  • Date: Wed, 25 Nov 2009 08:30:25 +0100

Simple but irritating newbie problem.

If I write :
--
set itemcount1 to count every item of folder X
set itemcount2 to count every item of folder Y
set itemcount3 to count every item of folder Z

set Dialog1 to temcount1 & "blah... blah..." & return
set Dialog2 to itemcount2 & "blah... blah..." & return
set Dialog3 to itemcount3 & "/" & itemcount1 + itemcount2 & "blah... blah..." & return
set Dialog4 to "blah... blah..."


display dialog Dialog1 & Dialog2 & Dialog3 & Dialog4 buttons {"Cancel", "OK"} default button "OK"
--
The script does not run correctly.
I have tried to add "as text" to the "itemcounts" unsuccessfully.


If I write :
--
set itemcount1 to count every item of folder X
set itemcount2 to count every item of folder Y
set itemcount3 to count every item of folder Z

set Dialog1 to "blah... blah..." & itemcount1 & return
set Dialog2 to "blah... blah..." & itemcount2 & return
set Dialog3 to "blah... blah..." & itemcount3 & "/" & itemcount1 + itemcount2 & return & return
set Dialog4 to "blah... blah..."


display dialog Dialog1 & Dialog2 & Dialog3 & Dialog4 buttons {"Cancel", "OK"} default button "OK"
--


There is no problem.	

Thanks to help me.

						


_______________________________________________ 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
  • Follow-Ups:
    • Re: Dialog
      • From: "email@hidden" <email@hidden>
    • Re: Dialog
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Problem with FMP 10.0v1 OS X 10.5.8
  • Next by Date: Re: Problem with FMP 10.0v1 OS X 10.5.8
  • Previous by thread: Re: Problem with FMP 10.0v1 OS X 10.5.8
  • Next by thread: Re: Dialog
  • Index(es):
    • Date
    • Thread