How to send a message(apple event) from mac os to our application

on developer.apple.com i found a method which opens a given documetns through an apple event.
my question is how to send open document event from mac to our application on xcode

Assuming you're using Cocoa, the simplest solution is to call -[NSWorkspace openFile:withApplication:]. Example:
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
NSString *appPath = [ws absolutePathForAppBundleWithIdentifier: @"com.apple.textedit"];
[ws openFile: @"/path/to/file" withApplication: appPath];

Similar Messages

  • How to send error message to forms from Database Trigger

    Hi, Please help me to send error message to forms from Database Trigger?
    RgDs,
    Madesh.R.M

    You are correct, the On-Error trigger is a Forms trigger. However, if your Form is going to display the error generated by the database stored procedure or trigger - you might not see the database error in your Form unless you check the DBMS_ERROR_CODE in the On-Error trigger and manually display the Error Code and associated Text. I've see this happen with a co-worker. The Form she was working on was based on a table with an Before-Insert trigger. Because she was not explicitely handling the error from the Before-Insert trigger in the Forms On-Error trigger, her Form appeared to halt for no reason at all. Once she added code to the On-Error trigger in the Form to handle the DBMS_ERROR_CODE, she discovered the trigger was producing an error and was able to show the error to the user in the On-Error trigger.
    I understand the desire to keep as much as possbile in the database, but with that comes some extra coding in your Forms to handle this. This extra coding could easily be placed in a Forms Library, attached to a Form and called in the On-Error trigger. Your code could look like this:
    DECLARE
       /*This example assumes you have an Alert defined
          in your Form called: 'ERROR' */  
       al_id    ALERT;
       al_text  VARCHAR2(200);  /* Max text of a Forms Alert message*/
       al_btn   NUMBER;
    BEGIN
    IF DBMS_ERROR_CODE != 0 THEN
       /* Error code is ORA-00000 Normal Successful completion
           So only handle non-zero errors  */
       al_text := DBMS_ERROR_CODE||':'||DBMS_ERROR_TEXT;
       al_id := Find_Alert('ERROR');
       set_alert_property(al_id, alert_message_text, al_text);
       al_btn := show_alert(al_id);
    END IF;
    END;Your original question was "How to send error message to forms from Database Trigger?" The answer is you don't because Forms already gets the database error code and database message through the Forms DBMS_ERROR_CODE and DBMS_ERROR_TEXT functions. Look these up in the Forms help and it should clear things up for you.
    Craig...
    Edited by: CraigB on Jun 14, 2010 4:49 PM
    Edited by: CraigB on Jun 14, 2010 4:49 PM
    Edited by: CraigB on Jun 14, 2010 4:50 PM
    Edited by: CraigB on Jun 14, 2010 4:51 PM
    Edited by: CraigB on Jun 14, 2010 4:51 PM

  • How to send a message to WD from a BPM?

    Hi All,
    I have a ccBPM in which I recieve a binary file .
    On receiving it I want :
    1)To send it to a folder in my pc.
    2)After sending file I need to send a message to WD giving path of file on my system so that it can be UPLOADED to the context.
    Please help !
    Points assured for helpful answers!
    Sumit

    HI,
    See the below links
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC  - File to Mail
    /people/michal.krawczyk2/blog/2005/08/22/xi-maintain-rfc-destinations-centrally - Maintain RFC destination centrally
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    Troubleshooting - RFC and SOAP scenarios-/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments --/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2) -/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    RFC to SOAP
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/piers.harding/blog/2004/07/18/you-dont-need-to-use-soap-to-keep-your-rpc-clean
    /people/david.halitsky/blog/2006/08/25/soa-vs-rfc-it-doesnt-have-to-be-charles-bronson-vs-henry-fonda
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rfc%20to%20soap%20scenario&cat=sdn_weblog
    Regards
    Chilla
    <i>reward points if it is helpful..</i>

  • How do I transfer the iphoto Events from Mac Book Pro to HP?

    I try to transfer the 2 iphoto events from my iphoto to a USB ,I don't know why they are not appear as a folder, they came out 50 individual pictures?
    Is anybody has this problem before?
    May I know how to fix it?

    Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events. Then copy that to the other machine.
    Regards
    TD

  • How can i change my apple id from @mac to @hotmail

    How can i change my apple id for the cloud from @mac to @hotmail?

    See:  How do I change my Apple ID name or personal information
    Here > Frequently Asked Questions About Apple ID

  • How to send short message services(SMS) from PC desktop to Mobile  with the

    sir, i want to know " how we can send the free SMS from PC desktop to Mobiles? this is my project part of final year project and till now i m in confusion. what r the various tools and technologies will be in used for implementing the SMS system. In fact, i m a new user of wireless java. so, pls give ur valuable hands for this topic.

    First of all PC as a "stand-alone" machine does not have ablity to send SMS since there is no necessary hardware in it. You can achive this in two ways: first, connect your mobile (method depends on model) to PC and use it to send SMS. Ofcourse it won't be for free - mobile owner will have to pay for it. Second way involves using so called "SMS gateway" provided by GSM suppliers via internet. Most of them, at least in Poland, are well protected against using by machines.
    This is all I know about it. Hope it helped in some way

  • How to move all or partial data from Mac to an external hard disk?

    Hei,
    I need to learn how to move the movies/projects/events from mac hard drive to another external hard drive.
    So basically, I have always imported all events from my video camera (the original clips) to iMovie located in my MacBook Pro hard drive. But after videoing for one year, the hard disc is starting to get full, and I cannot continue using only the laptop's hard drive.
    So I would like to move part OR all of my iMovie related stuff to another external disk drive (connected with USB wire). How do I do that? Is it possible to have some events located in Mac's own hard drive, and some clips/projects in the external hard disk? How to arrange all this?
    I know that "projects" are linked to the original event clips, so if I would be able to export some part of my iMovie data to the external hard drive, I should export both, for example, everything from the same year (the events) which is linked to the projects that are using those data.
    Any tips would be greatly appreciated.

    ok First with IM9, you can easily move stuff around. Here are some lessons learned from my experience managing projects across 6 different drives.
    1. All Drives must be formatted macos extended journaled
    2. The large terabyte drives are great for long term storage of events
    3. When you are working on a project, if possible, try to move the clips the current clips you will need to your internal hard drive. This is only necessary if you care about any time machine back ups.
    4. I have also worked on project straight from the external drives. I also use portable drives such as WD passports. These are small 500 gig drives that can travel with you. I have three of those. LOVE THEM.
    5. One way to move projects and clips and keep things organized is to move the project using command drag. It will ask, do you want to move just the project or project and clips. Then voila all clips and project are then moved to that drive!
    6. REMEMBER...MOVE WITHIN IMOVIE using COMMAND Drag. NEVER EVER USE THE FINDER. This is for both projects and events. Using the Command Key will ensure the projects are moved and not just copied!
    7. Last but not least, if you have changed the dates of events using change date function in imovie....For some reason, there is a bug. It inconsistently will change the date. Don't know why and have reported the issue, but it is still not fixed!
    But its still a great little app!

  • How to send a message to a Facebook friend from shortcut of messages in notification center

    i tried to send a message to a facebook friend from the shortcut of messages like facebook post or twitter tweat option in notification center but i couldn't i thought there may be something else which i need to do before sending a message to anyone from facebook is there something i need to get done before i can a message to a facebook friend ???

    Hi,
    I take it you have a Jabber account set up in Messages ?
    A Google Mail ID can access Google talk which is a Jabber Server and if you have Enabled "Chat" at Facebook you will have a Facebook chat ID that can be used in Messages as they too run a Jabber server.
    Of course these are just two of many Jabber and compatible XMPP servers.
    I don't have Facebook or Twitter but I did use the Menu bar icon for Notifications  and clicked Messages and Sent a Messages to one of my Jabber IDs (it logged me in and sent it from my Google one).
    In the System Preferences > Notifications I do have Share Button set (Messages only).
    9:04 pm      Saturday; May 10, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How can I delete an Apple ID from one device and replace it with a different ID on that same device?

    How can I delete an Apple ID from one device and replace it with a different ID on that same device?

    Tthe brute force method: start with Settings > iCloud and turn off Find My (you will need the password), then change the iCloud ID, then go to the apps such as Messages, FaceTime, etc, and delete the Apple ID and enter the new one.

  • How do i delete a Facebook event from my iPhone 5? (there is no delete button or edit button)

    Hi
    I cannot delete an facebook event from my Iphone 5. This event has been accepted by email invite.
    There is no edit or delete button at the top or bottom of the screen when I tap the event to search out its details.
    How do I remove such an event from my Ical calendar on my Iphone 5?

    I am not sure how this works but it seems that it may be all or nothing.
    To turn off Facebook events on your device:
    Settings > Facebook > Calendars > Off
    If you do not want to disable everything, maybe this thread will help:
    https://discussions.apple.com/thread/4349443

  • How to send a message to a pager? URGENT

    Hi everybody
    I wanna know how to send a message (or a caller's number) to a pager from Form.

    Hi,
    if you can find a public Webservice on the Web that provides this functionality, you could use JDeveloper and the Forms Java Importer to call it from Forms.
    JDeveloper is helpful in creating the Java skeletton to communicate with the Webservice. As similar issue is covered in teh Forms9i demos by the example of a currency converter.
    Frank

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

  • I need to send a message via socket from a C program to a Java program

    Hi,
    I need to send a message via socket from a C program to a Java program. The message has three data: a long, an integer and a string.
    How can I put those three fields in a array of bytes in C? How can I extract those same three fields from an array of bytes in java?
    Thanks a lot!

    A few options:
    JNI
    Corba
    Using sockets directly
    take your pick.

  • How can i import my calendar events from google calendar to ical?

    how can i import my calendar events from google calendar to ical?

    To set up CalDAV support for Google Calendar in Apple's iCal, follow these steps:
    Open Apple iCal, go to Preferences and then the Accounts tab.
    Click on the + button to add an account.
    In the box that pops up, enter a description for the account and your Google Account username and password.
    Under Server Options, add the following URL:
    https://www.google.com/calendar/dav/[email protected]/user//www.google.com/calendar/dav/[email protected]/user
    Replace '[email protected]' with the email address that you use to log in to Calendar. Make sure to include the '@domain.com' portion (which is @gmail.com for Gmail users) in this section.
    DO NOT substitute your username for 'user' at the end of the URL.
    Leave the Use Kerberos v5 for authentication option unchecked.
    Click Add.
    Under the Delegation tab, select the calendars you'd like to add to iCal by checking the boxes next to them. You may need to hit refresh to get the latest list of calendars.
    Add your email address to your Address Book card by selecting Add Email. You'll be prompted to add your email address only if your address is not already in your Address Book.
    You won't be able to invite or email guests to Google Calendar events within iCal if your address is not in your Address Book.
    Your Google Calendar will now appear in iCal's list of calendars, and changes you make to your Google Calendar in iCal will be reflected when you sign in to Google Calendar.
    Event information will automatically refresh every five minutes. You can change this interval by opening the iCal > Preferences > Accounts menu and selecting a new refresh interval under the 'Refresh calendars' drop-down. Keep in mind you can also force a refresh by selecting a calendar and pressing the Apple and R keys at the same time.
    Calendars that are checked but disabled have already been added to iCal - you can remove them from within iCal.

  • How to Send the material master data from sap4.6c to ECC6.0

    Hi
        Friends this is shalini Shah, i got one requirement that is
    how to send the materail master data  from SAP 4.6C to ECC6.0 using XI.
    i  know the file to idoc and idoc to file scenarios but i don't know this one.
    please help me friends, Thanks in advance.
    Regards
    Shalini Shah

    Hi Shalini,
    To trigger IDoc these configurations should be done in the SAP 4.6, XI and ECC 6.0.
    SAP XI
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (IDX1)
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Load Meta Data for IDOC (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    SAP R/3 (4.6 and ECC 6.0)
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    Also go ther the Blog <a href="/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi Configuration for Pushing IDOC's from SAP to XI</a> By Swaroopa Vishwanath
    U need to import the IDoc types both inbound and outbound to XI.
    1. Create Inbound and Outbound Message interface.
    2. Do one to one message mapping.
    3. Define an Interface mapping.
    ID:
    1. Create 1 Sender aggrement.
    2. Create 1 Receiver aggrement.
    3. Define 1 RD and ID.
    4. Only create an receiver IDoc CC.
    Regards
    San
    <a href="Remember to set the thread to solved when you have received a solution to set the thread to solved when you have received a solution</a>
    Where There is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way.

Maybe you are looking for

  • SQL Server Oracle If else differences

    I have a query in SQL Server 2008 that uses an if statement to determine how the SQL is returned. It is fairly complex but here it is in its basic form. declare @granularity varchar(20); begin set @granularity = 'Month'; if (@granularity = 'Month') b

  • GR/IR Slip No

    Hi In MIGO am not getting the GR/IR slip no filed. I need the filed. How to get this? Vijay

  • If i downloaded a movie from mi pc or mac but NOT from itunes, how can i stream it to my apple tv

    NOT FROM ITUNES, i have downloaded it from the internet and i want to stream it to my apple tv, how can i do it?

  • Re: Assign Logical System to Client

    Hi Guys, Currently our BI client 100 is connected to ECC client 140. Now I want to connect BI client 100 to e-recruiting client 180. How to do this?  How to assign same client to different logical systems? Regards, Anand

  • Changing of labels

    Hi, I have a requirement where in i have to change the label 'Search Criteria' and 'Result List' on the Search Page. Please if anyone could help me in doing Thanks and Regards, Radhika Chuttani