Posted on 04-07-2014 06:38 AM
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
Posted on 04-07-2014 06:55 AM
Perhaps a LaunchAgent with that app bundle as the watch path. Have the script delete the daemon and itself upon successful completion.
Posted on 04-07-2014 11:58 AM
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