Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

One Bell System - it used to work before they installed the Dimension!


aus+uk / uk.comp.sys.mac / AppleScript Advice

SubjectAuthor
* AppleScript AdviceAlan B
`- AppleScript AdviceAlan B

1
AppleScript Advice

<su3hcl$hcv$1@alanrichardbarker.eternal-september.org>

  copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=6066&group=uk.comp.sys.mac#6066

  copy link   Newsgroups: uk.comp.sys.mac
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!alanrichardbarker.eternal-september.org!.POSTED!not-for-mail
From: alanrich...@nospamgmail.com.here (Alan B)
Newsgroups: uk.comp.sys.mac
Subject: AppleScript Advice
Date: Thu, 10 Feb 2022 17:18:13 -0000 (UTC)
Organization: Grumpy Old Men
Lines: 9
Message-ID: <su3hcl$hcv$1@alanrichardbarker.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 10 Feb 2022 17:18:13 -0000 (UTC)
Injection-Info: alanrichardbarker.eternal-september.org; posting-host="49f1299a5b5c08ee18bb6b36f083aba0";
logging-data="17823"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OnuvJUs4UE6JQVtp5EmIBuAEG5JKTkn5wu+tryFriBg=="
User-Agent: NewsTap/5.5 (iPad)
Cancel-Lock: sha1:zVPWmcHVtTjyeWPAmJo3pb5ziJ4=
sha1:Pov8MZOL6Gyo74ipIWpVGLX1iMY=
X-No-Archive: Yes
X-Face: nG6>hdjT^mn!;GSJ^^\ZQOl<Y6ji0*21Sj'u?{'0H""UaDnLW|{</uR5Zkg0\93OsFI.LLS |,nz@w%Vezf1l7MmVVy/J+Z=Dl#quuPgB5)T2awRzA]X\2Sd(RZbxg{3{!mkZr%@@x'[U&VxyY4]sR 0Cwoj."gM#,0AR}|Lx[bvku-1o<yHzB.M`yRkH(,?Ed3&33O@_#B-+<g[3:X45}X)<NZfI+R"2rL3( w6edB|\DO7wks0SKvSp!tC3nmcONA8x
 by: Alan B - Thu, 10 Feb 2022 17:18 UTC

I’m trying to write an AppleScript which amongst other things needs to
record all open applications. I *THINK* the following will do it but any
suggestions welcome.

tell application "System Events" to set openApps to displayed name of
(every process whose background only is false) as list

--
Cheers, Alan

Re: AppleScript Advice

<su57tk$cen$1@alanrichardbarker.eternal-september.org>

  copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=6079&group=uk.comp.sys.mac#6079

  copy link   Newsgroups: uk.comp.sys.mac
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!alanrichardbarker.eternal-september.org!.POSTED!not-for-mail
From: alanrich...@nospamgmail.com.here (Alan B)
Newsgroups: uk.comp.sys.mac
Subject: Re: AppleScript Advice
Date: Fri, 11 Feb 2022 08:48:52 -0000 (UTC)
Organization: Grumpy Old Men
Lines: 23
Message-ID: <su57tk$cen$1@alanrichardbarker.eternal-september.org>
References: <su3hcl$hcv$1@alanrichardbarker.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 11 Feb 2022 08:48:52 -0000 (UTC)
Injection-Info: alanrichardbarker.eternal-september.org; posting-host="3e50e7ef56736f93054e0f8184f4a25f";
logging-data="12759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ozkUQPPonooppMeZIO3y3P7pDii2miLGPyjTaDsMC0g=="
User-Agent: slrn/pre1.0.4-6 (Darwin)
Cancel-Lock: sha1:i5luLTN3sbFKeIue0oGQ+8c8ucc=
X-No-Archive: yes
X-Face: nG6>hdjT^mn!;GSJ^^\ZQOl<Y6ji0*21Sj'u?{'0H""UaDnLW|{</uR5Zkg0\93OsFI.L
LS|,nz@w%Vezf1l7MmVVy/J+Z=Dl#quuPgB5)T2awRzA]X\2Sd(RZbxg{3{!mkZr%@@x'[U&VxyY4
]sR0Cwoj."gM#,0AR}|Lx[bvku-1o<yHzB.M`yRkH(,?Ed3&33O@_#B-+<g[3:X45}X)<NZfI+R"2
rL3(w6edB|\DO7wks0SKvSp!tC3nmcONA8x
 by: Alan B - Fri, 11 Feb 2022 08:48 UTC

On 2022-02-10, Alan B <alanrichardbarker@nospamgmail.com.here> wrote:
> I’m trying to write an AppleScript which amongst other things needs to
> record all open applications. I *THINK* the following will do it but any
> suggestions welcome.
>
> tell application "System Events" to set openApps to displayed name of
> (every process whose background only is false) as list

Well the construct seems to work in the following test script so
onwards and upwards. I'm aware using System Events calls can be
dangerous.

tell application "System Events" to set openApps to displayed name of
(every process whose background only is false) as list
set appList to "List of All Open Applications ..." & return & return
set c to (count of openApps) as integer
repeat with i from 1 to (c)
set appList to appList & item i of openApps & return
end repeat
display dialog appList

--
Cheers, Alan

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor