How to create a 1st run popup message?

darms21
New Contributor

Morning All -
My objective is to create display a message when an application (Omnigraffle) is opened for the 1st time and only the 1st time. The application is being installed as part of our Coreload so I cannot rely on the native "complete message" built into Self Service.

Has anyone tackled this in the past?

Thanks,
Kevin

2 REPLIES 2

JPDyson
Valued Contributor

Perhaps a LaunchAgent with that app bundle as the watch path. Have the script delete the daemon and itself upon successful completion.

tlarkin
Honored Contributor

Hey @darms21

To echo out @JPDyson's idea, you can have a command run after install that touches a file in the app itself. You can just touch a file called 'firstrun.txt' or something. The launchd item can then watch that path, and when the app is opened if that file exists it can display a message (via applescript, JAMF Helper, CocoaDialog, etc) and then remove that file. If that file doesn't exist the launchd can self destruct.

Of course there are probably many other ways to do this, but this is just what came to mind.

Thanks,
Tom