• 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
Re: AppleScript sets busy cursor even when displaying alert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript sets busy cursor even when displaying alert


  • Subject: Re: AppleScript sets busy cursor even when displaying alert
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 4 Jun 2008 08:44:48 -0500

I've seen that, too, so I did two experiments. In 10.5.3, both compiled as an application bundle ...

on run -- Show in Dock = true
	activate me
	tell me to display alert "xxxx" message "yyyy" -- busy
	--
	tell application "Finder"
		activate
		display alert "xxxx" message "yyyy" -- pointer
	end tell
	--
	tell application "Mail"
		activate
		display alert "xxxx" message "yyyy" -- pointer
	end tell
end run

on run -- Show in Dock = false
	activate me
	tell me to display alert "xxxx" message "yyyy" -- pointer
	--
	tell application "Finder"
		activate
		display alert "xxxx" message "yyyy" -- pointer
	end tell
	--
	tell application "Mail"
		activate
		display alert "xxxx" message "yyyy" -- pointer
	end tell
end run

I also tried a few more variants of this.
"tell me to display ..." and (Show in Dock = true) are both necessary.
Hope this helps someone decipher the problem.

On Jun 3, 2008, at 6:15 PM, Brett Powley wrote:
It seems that AppleScript sets a busy cursor when an application is launched, even when it's asked to display an alert.

For example, if I write a simple script like:

set reply to display alert "Do you want to see a busy cursor?" buttons {"No", "Never"}

then save it as an "Application Bundle" and launch it, it displays an alert with a busy cursor rather than an arrow cursor, and then the user has to click on a button with the busy cursor.

Is this intended behaviour? Is there a workaround?
_______________________________________________
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: AppleScript sets busy cursor even when displaying alert
      • From: Brett Powley <email@hidden>
References: 
 >AppleScript sets busy cursor even when displaying alert (From: Brett Powley <email@hidden>)

  • Prev by Date: Re: Script for Auto-login to websites
  • Next by Date: Re: Script for Auto-login to websites
  • Previous by thread: Re: AppleScript sets busy cursor even when displaying alert
  • Next by thread: Re: AppleScript sets busy cursor even when displaying alert
  • Index(es):
    • Date
    • Thread