Can anybody tell me how to collect all undelivered messages on Mac OSX "Messages App" using AppleScript?
My idea was to analyze the UI elements of the window but it doesn't work well
Actually, I found out the information is stored in the SQLite database at ~/Library/Messages/chat.db
I get everything I want here...
Related
Im building a Unity game for windows and mac.
They both have the same codebase and little to nothing changes between the Windows and OSX versions of the game.
On OSX every time I quit the game it gives me a "Do you really want to quit?" message which is presented to the user before "OnApplicationQuit" is even called in any script..
I want to get rid of this message, If I want to display a message for quit it would definitely be a better message than "Do you really want to quit?"
Has anyone else come across this issue and is there some way to fix it ??
Thanks for any help.
UPDATE
the only thing I have found to override this is a native plugin to override the window close event and send -[NSApplication terminate:] instead. Which may work for my needs right now, but it is likely to create a whole new avenue of issues later on.
I created a Mac app/service that will be shown in menu bar (and not in dock) that will take care of printing through my cloud server.
What I'm looking is to show this as part of printer list. For example, when a user wants to print a word doc from MSWord, click on Command+P which shows the printer UI where user can select the printer. Now I want to show my app/service as part of the printers list so that the doc can be printed directly using my cloud server.
Is it possible to do such thing. Or any other ideas will be appreciated.
Thanks in advance.
--satyam.
We have to create a device driver. It cannot be achieved using regular application development in Java or Objective C.
I am developing a simple application in Cocoa, and I want to detect whether any application is running in full screen mode. Is this possible?
Through runningApplications API, I can get various informations but there is no specific property related to full screen mode. Does any one know how to detect it? Is there any carbon event or API for this?
I ran into this in the spring and spent forever trying to get it to work. I ended up packaging my code up into a little GitHub project, but I completely forgot to share it here.
https://github.com/shinypb/FullScreenDetector
Hope this is useful for someone.
Anyways after trying out so many options and digging into the NSWorkspace i have found way through which we can achieve this their is notification
"NSWorkspaceActiveSpaceDidChangeNotification"
Apple doc says "Posted when a Spaces change has occurred." so by using we can register for it. along with this we need to use the NSWindow's property "isOnActiveSpace" , so by this we can detect when application enters full screen mode and exits from it.
You want to key-value observe -[NSApplication currentSystemPresentationOptions]. When the active app is in full-screen mode, that property will include NSApplicationPresentationFullScreen.
within my app I'd like to know when something is pasted from the clipboard, even if it does not happen in my application. So if a copy happens in let's say Safari and the paste is happening in let's say TextEdit, then I'd like to get a notification of that in my own application. Is this anyhow possible?
I found two articles on hooking API calls on Mac OS
Is it possible to hook API calls on Mac OS?
and
Hooking Cocoa API?
but i have no idea if this can help me.
Any help is appreciated!
Thanks a lot!
You can observe the keyboard input using Quartz Event Services or Carbon Event Manager.
Note that sandboxing your app will break this feature.
I code in REALbasic.
Whenever I receive an IM via iChat, iChat runs an applescript and sends to it the last message received. I need to somehow forward this message as a string to the app I'm writing in REALbasic. REALbasic is able to respond to AppleEvents but I don't now how to implement this or if I'm even in the right ball park.
Any advice?
Unfortunately I havenĀ“t used RB in ages, but maybe the following link (just a quick google) might be a starting point?
http://www.106automation.com/page2/RB/RB.html
(the link to download the example files is actually the title of the page, so click "REALBasic & Applescript")