• 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: Script not quitting Entourage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script not quitting Entourage


  • Subject: Re: Script not quitting Entourage
  • From: Ken Dobson <email@hidden>
  • Date: Sat, 23 Dec 2000 14:18:58 -0500

> Aha! Didn't know this. I ended up using this :
>
> tell application "Finder"
> list processes
> end tell
> if result contains "Entourage" then
> tell application "Entourage"
> quit
> end tell
> end if
>
> In conjuction with an osax from Ken Dobson. Since its a single-machine
> script, the osax addition is acceptable - the script is working just fine
> now.

The "Processes" osax is from Late Night Software, I can't recall if I
downloaded it direct or if it installed with their Script Debugger demo. It
does simplify the job though.

get process: get information about a running application
get process string -- application name
Result: process info -- process information

list processes: get a list of the running applications
list processes
Result: list -- list of running applications

get current process: determine the name of the currentlty executing process
get current process
Result: string -- application name

get foreground process: get the name of the active application
get foreground process
Result: string -- name of foreground application

Class process info: information describing a running application
Properties:
process name string [r/o] -- application's name
process number 'psn ' [r/o] -- Process Serial Number
application type string [r/o] -- application's file type
signature string [r/o] -- application's signature
partition size integer [r/o] -- partition size in bytes
free memory integer [r/o] -- free memory within partition in bytes
launcher string [r/o] -- name of the application which launched this
application
launch date anything [r/o] -- date object - date and time when the
application was launched
active time integer [r/o] -- CPU time (in ticks) used by this
application
application file file specification [r/o] -- application file
deskAccessory boolean [r/o]
multiLaunch boolean [r/o]
needSuspendResume boolean [r/o]
canBackground boolean [r/o]
activateOnForegroundSwitch boolean [r/o]
compatible32Bit boolean [r/o]
onlyBackground boolean [r/o]
getFrontClicks boolean [r/o]
getApplicationDiedEvents boolean [r/o]
highLevelEventAware boolean [r/o]
localAndRemoteEvents boolean [r/o]
stationeryAware boolean [r/o]
useTextEditServices boolean [r/o]


  • Follow-Ups:
    • Re: Script not quitting Entourage
      • From: Peter Fine <email@hidden>
  • Prev by Date: Re: applescript-users digest, Vol 2 #159 - 18 msgs
  • Next by Date: Toggling case insensitivity in AKUA's "whose names match"
  • Previous by thread: Re: Script not quitting Entourage
  • Next by thread: Re: Script not quitting Entourage
  • Index(es):
    • Date
    • Thread