I understand that there is a very limited number of options to do with the Applescript notification alert call, but I am curious as to whether alerts can be called with icons or specified images to better identify them?
I ask this as i have seen it employed by other Applications which use the Notification Centre, and each Application has its notifications heralded by its own Application Icons.
Example:
Thanks in Advance.
Basically it's not possible to change the icon programatically.
A workaround is to save the script as application and change the icon (applet.icns) in the Resources folder of the package.
Related
After choosing the user in the login view, the library saves this information somewhere so that the app has not to ask for the user again.
Where is this information stored? I need to know how to reset this setting for a fresh start?
If you're simply looking to switch between users, there is an easy way to do this when the app starts up.
On iOS, there is a brief message shown at the top of the screen when the app starts up, if you click on that, you can change to a different user.
On Android, there is a notification that you can reach by pulling down from the top of the screen once the app has started. Click on the notification and you can change user.
Can anyone enlighten me as to how one would be able to trigger a "non standard" realtime notification on a Windows 8 machine? My objective here was simply to find a slick method through which the end user is presented with an enhanced notification slide displayed via a slide in/5 second fade out dialog box.
Best example I can think of to illustrate what I am trying to achieve would be thinking of it like when the charms bar is presented which can automatically fade away. I simply require that this enhanced notification layer is somewhat customizable in order for me to provide summary content along with 3-4 buttons a user can press directly. This notifications needs to be triggered automatically upon the system receiving a push notification.
I have loomed into various "notification" methods such as default windows notifications, offline Google Apps notifications,... problem however is that they all seem not to allow me to customize the notification window to meet my needs.
Any suggestions / examples would be very helpful.
BTW - as an alternative solution - is there simply a way that I might be able to have Windows automatically load and "snap" into view the contents of a specific Windows app containing my content to the left or right side of the screen (upon receiving a push notification vs displaying the standard toast bubble?
Are you looking for something like growl?
I have an app that has 2 parts: A preference pane and an app that runs in the background.
I need the user to input some secure data in the preference pane, the pane then saves it to the keychain. My question is, what is the best way for the preference pane to tell the app to update from the keychain?
Let me know if you need anymore information
Thanks in advance.
Use NSDistributedNotificationCenter. The API is similar to NSNotificationCenter except that a distributed notification can be posted and received across process boundaries. So in your case, the preference pane would post a distributed notification with some unique name, and the app would register for that notification to know when to update from the Keychain.
With windows 8, is it possible to create an application that is always visible? For instance, in previous versions of windows, there is the task bar with quick launch icons. Can I create something similar to the quick launch icons that are always on the screen?
If you are referring to a Windows 8 Store app then the answer is no. You can have a live tile and toast notifications that provides updates to the user which may cause the user to launch your application.
A good article to read to understand how your Windows Store apps will run on Windows 8 go here to learn about Application lifecycle (Windows Store apps). This will explain the App execution state.
It is not possible in the RT version, but the same is possible in the desktop version. If you have a desktop app, you can pin it to the taskbar. But any Window store app cannot be pinned to the taskbar. What you can do instead is move the app to the beginning of your Home screen, so anytime you click the Windows button your app will be visible right in front.
Do you mean always visible in the Star Menu screen? If so, you can add tile updating functionality to your application. As long as the user has the application pinned to the Start Menu, he would see the updates. Check the link below for an introductory tutorial.
http://blogs.msdn.com/b/windowsappdev/archive/2012/04/16/creating-a-great-tile-experience-part-1.aspx
"Quick Launch" has a very specific meaning, which you may or may not have been referring to in your question.
Below is the Quick Launch bar in Windows 8 - essentially a toolbar pointing to a location in your %AppData% directory. Prior to Windows 7 it was available by default, but the ability to now pin items directly to the taskbar rather supersedes it. Here's how you can restore Quick Launch if you really want to :)
It's, of course, available only in the Desktop mode and not on the Modern UI, where pinning a tile is the best you can hope for, and it's all up to the user to pin it AND to determine where it shows up on their Start Screen.
Another option worth mentioning (although more like system tray than quick launch) is lock screen presence. If the user chooses so and your app supports that, he can add it to his lock screen:
either as a a badge (up to 7 apps)
or as a tile notification (single app only)
This is not a way for the user to quickly start your app (other answers have already covered these options) but a way to stay visible and keep your user informed.
If there a way to display a normal Notification/Toast/Popup in Windows Phone 7, which is not a Push Notification?
All I want to do is to be able to give the user a message when something occurs...
I assume you wish to display something while your application is not running in the foregorund. Because, when your application runs in the foreground, you can do whatever you want.
Your application can't run in the background, therefore you don't really have any means of invoking anything. This means you can't really display a message when somethien occurs.
What exectly occurs on the phone that you need to notify the user? Is that really not back-end related?
There are two great sample chapters on Windows Phone and Silverlight for Windows Phone on the LearningWindosPhone.com site. There is great Windows Phone Trainng material , and dont forget the Windows Phone Develoeprs Blog
You can use MessageBox.Show(), though this creates a modal dialog box.
If you want to display the notification while your app is not running (but when you're doing some background work) then I believe this is what you want:
ShellToast toast = new ShellToast();
toast.Title = "My app";
toast.Content = "Hello from my app's background task!";
toast.Show();
For some reason, this doesn't display anything if your app is already running. If you want to display a message then, you can use MessageBox.Show() (if you're OK forcing the user to click OK), or you can use the Coding4Fun Tools that Haider links to.
It would be fairly straight forward to reproduce the visual effect of a toast from within your app. You could use a fixed height, full width canvas with a TextBlock control and animate it's appearance using a storyboard.
How to bind toast notification with schedule in windows phone