79256336

Date: 2024-12-05 22:00:37
Score: 1.5
Natty:
Report link

Combining the suggestions of @wch1pink, @Mockman and @Ted Wrigley here are two approaches:

set AppFolder to path to applications folder
set NumLoc to AppFolder & "Numbers.app" as string

try
    NumLoc as alias
    set NumExists to true
on error
    set NumExists to false
end try

The setting of the variable is just for illustration. Or more directly:

if exists application "Numbers" then
    set NumExists to true
else
    set NumExists to false
end if
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @wch1pink
  • User mentioned (0): @Mockman
  • User mentioned (0): @Ted
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Philip Kearns