display notification doesn't work in app's library
display notification doesn't work in app's library
- Subject: display notification doesn't work in app's library
- From: Jenni via AppleScript-Users <email@hidden>
- Date: Fri, 29 Apr 2022 12:43:40 -0700
I have a library saved as a .scptd in the ~/Library/Script Libraries folder
with the following code in it:
on get_password()
set _app to "FileMaker Pro 18 Advanced"
set fmp_filepath to (path to documents folder as string) &
"filemaker_db.fmp12"
if application _app is not running then
display notification "Please Wait..." with title "✔ Starting
FileMaker Pro" sound name "Submarine"
tell application _app
activate
open fmp_filepath
end tell
end if
end get_password
Then I have a .scpt file that calls it like this:
use AppleScript version "2.7"
use scripting additions
use cPanelLib : script "cPanel Login Info"
set my_pw to cPanelLib's get_password()
The "display notification" works properly when called as an uncomplied script.
However, after it's saved as an application it doesn't get displayed anymore.
Does anyone know why?
Thanks,
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden