Skip navigation
Currently Being Moderated

Count windows in Fireworks (applescript)

Jul 26, 2010 9:04 AM

I am writing a script to be able to select ok when a batch process is opened in fireworks. I am having the script essentially sleep until the script detects a modal window. Then it will hit enter and keep the batches going. My problem is getting a count of window modal. I am using applescript.

 

I can get a count of total windows but when I add the modal property, it just doesn't work. Gives me this error:

 

error "Adobe Fireworks CS4 got an error: Can’t get every window of application \"Adobe Fireworks CS4\" whose modal = true." number -1728 from every window whose modal = true

 

Here is the script I am using

 

 

set allWindows to the count (the windows of application "Adobe Fireworks CS4" where modal is true)

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points