I would like to make a dialog box which looks something like the attached image, but am having little success...
I haven't found a way to make text in bold and/or italic, so the closest is having two lines and emphasizing the drive name with CAPS, but the following only gives me a generic Applescript icon:
On the other hand I've been able to add a stop icon (replace "stop" with "1" for a generic Applescript icon or "caution" for a yellow caution icon), but only with one line of text:
I was hoping the code below would do it, but no matter how I arrange the code I keep getting error messages. It seems to concern the second line of text. Here's the code (this time with a custom app icon):
...so what are my options for making a suitable dialog with an icon, two lines of text and prefferably the ability to set the drive name in bold or bold italic? I'm on OSX 10.9.5 Mavericks
I haven't found a way to make text in bold and/or italic, so the closest is having two lines and emphasizing the drive name with CAPS, but the following only gives me a generic Applescript icon:
Code:
display alert "Backup done!" as warning message
"The drive BACKUP can now be disconnected"
buttons {"OK"} default button "OK"
On the other hand I've been able to add a stop icon (replace "stop" with "1" for a generic Applescript icon or "caution" for a yellow caution icon), but only with one line of text:
Code:
display dialog "Backup done!"
with icon stop buttons "OK"
I was hoping the code below would do it, but no matter how I arrange the code I keep getting error messages. It seems to concern the second line of text. Here's the code (this time with a custom app icon):
Code:
display dialog "Backup done!" with icon file
"Applications:ChronoSync.app:Contents:Resources:AppIcon.icns"
with message "The drive BACKUP can now be disconnected"
buttons {"OK"} default button "OK"
...so what are my options for making a suitable dialog with an icon, two lines of text and prefferably the ability to set the drive name in bold or bold italic? I'm on OSX 10.9.5 Mavericks
Attachments
Last edited: