• 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: Front window dirty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Front window dirty


  • Subject: Re: Front window dirty
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 23 Oct 2014 09:37:37 +1100

On 23 Oct 2014, at 1:36 am, Jeremy Roussak <email@hidden> wrote:
>
> Is there a straightforward way in AS to obtain a pointer to a non-scriptable application's frontmost window and to set its "dirty" flag (so the dot appears in the close button)? I suspect this might be one for Shane but I'll happily accept help from anyone!

There are generally only two ways you can modify (or find out about) things that belong to applications via AppleScript: directly, using some command from the application's dictionary, or using GUI scripting. Sometimes you can also do stuff indirectly by changing things like property list files, but that's about it.

Other than that, no application or script can stick its nose into another application's business. And when you think about it, pain that it is sometimes, anything else would be the potential road to chaos.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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: Front window dirty
      • From: Jeremy Roussak <email@hidden>
References: 
 >Front window dirty (From: Jeremy Roussak <email@hidden>)

  • Prev by Date: Re: Scripting iCloud Drive on Yosemite
  • Next by Date: Re: Scripting iCloud Drive on Yosemite
  • Previous by thread: Re: Front window dirty
  • Next by thread: Re: Front window dirty
  • Index(es):
    • Date
    • Thread