• 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
Obnoxious Script Editor 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Obnoxious Script Editor 2


  • Subject: Obnoxious Script Editor 2
  • From: Rob Jorgensen <email@hidden>
  • Date: Sat, 1 Nov 2003 21:44:39 -0500

Howdy,

The following script, when saved as a stay open application, opens the dictionary of the frontmost application in Script Editor 2. During my tests, if I reopen the applet (click the script's icon in the dock while the script is running), Script Editor, which is already running, becomes visible but not active, blocking the frontmost application that is still active according to the menus.

The weird part is that this behavior isn't consistent. Reopening the script while switching back and forth between different apps (scriptable and non-scriptable) doesn't always produce the unwanted Script Editor behavior, and I can't detect a pattern.

on run -- do nothing but hide
tell application "System Events"
set visible of first application process whose frontmost is true to false
end tell
end run

on reopen
tell application "System Events"
set visible of first application process whose frontmost is true to false
set frontApp to first application process whose frontmost is true
end tell

tell application "Script Editor"
open file of frontApp as alias
end tell
end reopen

My questions:

1. Why does Script Editor display itself in this way?
2. Does Script Editor 2 in Panther behave this way? My tests are limited to OS X 10.2.8 and the beta release of Script Editor 2.

For what it's worth, the Script Debugger version of the script does not behave this way. SD comes to the front only when issued an activate command.

Thanks,
Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Obnoxious Script Editor 2
      • From: Sander Tekelenburg <email@hidden>
    • Re: Obnoxious Script Editor 2
      • From: Craig Sutherland <email@hidden>
  • Prev by Date: Re: Image Events
  • Next by Date: Re: AB Selection
  • Previous by thread: Re: [OT]Hookup to internet for G3 Laptop
  • Next by thread: Re: Obnoxious Script Editor 2
  • Index(es):
    • Date
    • Thread