Doc dirty and "save" event

Hello,
  I'd like to ask 2 info about SDK problems I have found
How to retrieve if current open document is dirty, and consequently can be saved or not.
I have registered to many events relative to document, using API AVAppRegisterNotification and passing the event action plus NSEL, like explicated in documentation (i.e. AVAppRegisterNotification(AVDocDidOpenNSEL, gExtensionID,(void*)HandleEventDocOpen, NULL);), but I didn't found any action acceptable by the compiler to register to the save action. How to do it?
Thank you and best regards.
Alessandro.

Can anybody take a look at the first question from Alessandro, I am eager to know if current open document is dirty.
Thanks,
Zhiqiang

Similar Messages

  • Generate new winword docs and save them dynamically to tmp folder

    Hi All,
    Is there any possible way to create a new doc file and save it in a temporary folder?
    Thanks
    Bala

    Yes, there are lots of possible solutions. You have not specified your specific need, but probably you could use POI to do what you want.
    http://jakarta.apache.org/poi/

  • How can I use Automator to open and save Word docs with links?

    Hi-
    I'm having trouble building a Workflow to open and save Word docs with links.
    My Workflow so far:
    1. Get Finder items
    2. Copy Finder items (to new folder)
    3. Rename selected items
    4. Open selected items (Word docs)
    Three problems occur.
    The first is a Word 2004 problem -- I can't get the warning "This document has links in it; do you want to open it with/without updating the links" to go away (Unilke the Macro warning toggle capability, there is nothing in the Preferences for Word 2004 that addresses the links warning, as far as I can tell; any insight you can shed on this would be terrific.)
    The second problem happens with Automator: if I manually accept the update of the first document's links, Automator opens that document but then halts completely, even though I've instructed it to open multiple documents.
    The third problem I have is that there's no Finder action in Automator that allows me to save the document that's now open (as far as I can see).
    Any suggestions for how to fix? If I can get this to work, and scheduled in iCal, it will be an unbelievable time saver.
    Thanks,
    Jeremy
    PowerPC G5   Mac OS X (10.4.6)  

    Hi there Jeremy,
    to do this you are going to have to add in some Run AppleScript steps...
    These will rely on GUI Scripting. So first you need to activate GUI Scripting.
    Now we need to add in a Run AppleScript action to the end of your workflow...
    This will replace your current number 4 in the workflow (Open Selected...)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    set allItems to every item of input
    repeat with currItem in allItems
    tell application "TextWrangler"
    open currItem
    end tell
    activate application "TextWrangler"
    tell application "System Events"
    tell process "TextWrangler"
    delay 2
    --when the Word document is opened I have told it to press okay !
    --I don't know what key you want it to press in the dialog box
    keystroke return
    delay 2
    --save the doc
    keystroke "s" using command down
    delay 5
    --close the doc
    keystroke "w" using command down
    end tell
    end tell
    end repeat
    return input
    end run</pre>
    The above script should open each Word Document, press a button in the dialog box then do a save and then close the doc...then loop through the rest of them.
    You need to replace the name Text Wrangler with Microsoft Word (or whatever it is called!), I don't have it on my Mac.
    You will have to let me know what button needs pressing in the first dialog, if it isn't the 'highlighted ' one then we will have to amend the script...
    regards
    Ric

  • When I click on a .docx document Firefox thinks it is binary and saves but does not open with MS Word - but it knows .doc is MS Word and opens it automatically

    When I click on a .docx document Firefox thinks it is binary and saves it but does not open with MS Word. But it knows .doc is MS Word and opens it automatically (this is the behavior I would like with .docx docs.) In preferences -- applications - it is just says "content type" is "microsoft word document" but doesn't give a way to choose .docx specifically. Is there another way to do this?
    Iam running Mac OS X 10.6.4 and Firefox 3.6.8 with MS Word Mac 2008

    Hi ,
    According to your description, my understanding is that you could not edit documents with Office client application in SharePoint 2010.
    Let’s do a troubleshooting about this issue:
    1. Make sure that you have installed Office application on your machine.
    2. Which explorer did you use for your SharePoint. Please test it with IE 10 32-bit, compare the result.
    3. Please try to reset IE, compare the result.
    4. Add your SharePoint site into Trusted site on your IE options.
    5. Make sure all add-ons related to SharePoint are enable, special for SharePoint OpenDocument Class and SharePointOpenXMLDocuments.
    6. Since you used OWA for your SharePoint site, please try to disable OWA, then open documents with client application, compare the result.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Detect and save an event and the previous 60s data in a R32 file

    Hello
    I am a new user of Diadem.
    I perform long reliability test, and so the R32 file reach often 1 Giga byte (with a measure frequency of 500hz) when I stop manually the measure after the event . And after I only use the last 60s.
    I acquire a Voltage signal using a measurement instument connected to the Serial port, I save this signal in a document by using the document icon in the DAC (Circuit with packaged data)
    I have read the manuals but I don't know how to do the following thing:
    How to save only the last 60s in a buffer and write it into a file if they are followed by an event.
    The signal has normaly each 10s a 10v spike (During 7ms) but some time it remain constant near 4V during at least 5s and that is the event.
    How to do that in the DAC? Should I use a trigger with a timer condition, but I don't know how to do it with packaged data.
    Could you give me an example
    Thanks for your help
    Alfons

    Hello,
    I have
    created two Examples how to do this.
    The basic idea is to build packets with 60 seconds of data, find the event and
    save the last minute. One way to create the packet with 60 Seconds is the
    Offset Register. This block is also able to shift the signal by smaller steps.
    The signal
    is created with two generators and a manual switch to create the stop event. The
    blocks are running free, so you don’t have to wait a minute or more to test the
    behaviour. It is possible to simulate real timing in the generators if you like
    to see the real speed.
    In the
    simple example the Offset Register “1 Minute” is producing a packet with the
    last 30.000 values 10 times per second. This is shown in a scope. After this, a
    formula is looking for values between 2 and 6. All values in the packet are
    counted and if the number is above 2.500 (5 seconds) the block Relay gives
    this packet into the store and stop block. (Store is simulated with a scope to
    make testing easier.
    This
    example should do the job.
    I have also
    included an advanced example.
    In this
    example a formula is creating a second signal with trigger information. This
    signal has the same amount of values and can be used for more complex ways of
    triggering. In this example the formula is measuring the time when the signal
    is between 2 and 6. When the signal is not in this range the time is set to zero.
    The Multiplexer Block is used to build a loop to put the result of the formula
    back in to the formula. This allows the formula to ad 0.1 seconds to its own result
    from the loop before.
    The trigger
    signal is later used to store and stop the test. It is possible to create very
    flexible triggers, events and decisions during a process if this is needed.
    Of course,
    it is possible, that you have to change some of the blocks or add additional functions
    if the simple formulas are not able to separate the event from other changes in
    the signal.Ulrich Bierwisch
    Attachments:
    simple.DAC ‏37 KB
    advanced.DAC ‏46 KB

  • How do I convert mail merge documents to individual pdf docs and save each with a field in the merge?

    How do I convert mail merge documents to individual pdf docs and save each with a field in the merge?

    Is this an actual field, or just some piece of static text somewhere? Either way, you can't do it using the Split Document command. You'll need to use a custom-made script to read the value of this "field" and use it when extracting pages from the file.

  • How do my boss and I share documents via iCloud? I log in as her to download a Pages doc, edit, then save to iCloud again but it does not save to hers. Even if I'm logged in as her.

    I log in as her to download a Pages doc, edit, then save to iCloud again but it does not save to hers. Even if I'm logged in as her.
    Thanks in advance!

    This only works if you add her account as your primary accoun on your device and enable syncing "Documents & Data" in "Settings >iCloud".

  • Capturing the output of a jsp page and save that output in a WORD .doc file

    Hi,
    This is Naveen. I got stuck up with a problem/doubt. URGENT ! URGENT !
    My doubt is how to capture the output of a jsp page(the content is dynamic generated) and save that output to a MS-Word doc file.
    I know that therez an option of using Servlets Filters, but this concept is supported by Servlet 2.3 spec. and not earlier. And we are working on previous spec. and our web-servers also supports the prev. version and not the 2.3 version.
    If incase, therez a third-party utility for free usage, suggestions are appreciated.
    Hope most of them came across this kind of functional requirement. If anyone of them succeeded in this, please express ur bitter experience if any, faced during the coding.
    Thanks in Advance for help.
    Naveen

    You can set the MIME content type as .doc and try to open the Page.
    res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
    res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
    Hope this helps..

  • When attempting to add an event to my calendar and I press "done," I receive a message that reads "Cannot Save Event." "That event does not belong to that event store." What can I do remedy this issue?

    When attempting to add an event to my calendar and I press "Done," I receive a message that reads "Cannot Save Event," "That event does not belong to that event store." How do I remedy this problem so I can add events and appointments to my calendar?

    i am having the exact same problem, same messages (no end date set; cannot save; no calendar set; event does not belong to that event store."
    it is unbelievable to me that this issue existed so long ago and hasn't been fixed. I just bought my first apple product (iphone4s) and am ready to toss it. Despite hours of searching on these forums I have been unable to find out how to fix my calendar. I have rebooted, adjusted settings to no avail. without a calendar, i can't use this product. Also, i am not technologically brilliant and can't handle the advanced fixes that some people recommend.
    question, is apple a product for the ignorant like me? or should i go back to nuts and bolts pc?
    all i really want is to be able to use the calendar without "uploading, reprogramming, contacting support offices for 3 hours, contacting network administrators, upgrading, switching fonts, changing operating systems.... etc. " I am just a regular person who needs a portable calendar.
    sorry to vent, but can anybody tell me (in simple terms) how to get my calendar to accept a simple apointment?
    thank you.

  • I have lost my calendar and now I cannot add events to it.  I keep getting cannot save event no calendar has been set.

    I have lost my calendar and now I cannot add events to it.  I keep getting message "cannot save event no calendar has been set."

    Maybe you need to Tap the Calendar Button in the upper left corner of the calendar app and select a calendar in which to add the event.
    Do you have. + sign in the lower right corner of the App? If not go to Settings>iCloud>Calendar>On. If you want to sync the calendar with iCloud, leave it set to on. If not, then set it to Off.
    Or try this of those suggestions don't work.
    Close all app scompletely and reboot the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • BOXI R3 Webi Doc -"Refresh On Open" checked as default for Save and Save As

    we have row level security at database level and we require that all webi reports are set to "Refresh on Open" in order to apply the security settings each time the report is viewed. 
    Is it possible to make BOXI R3 Webi Document -"Refresh On Open" checked as default for "Save" and "Save As"
    through SDk?

    Are you referring to editing/creating a Webi doc through infoview?  Infoview is an out of the box web application and modification of it is not supported.  There is no setting to make all webi docs refresh on open within the enterprise product.
    The only thing you could do with the sdk is to open any existing doc and change the setting.  This isn't a great solution as it won't affect any new reports created, nor will it prevent users from modifying the document and changing this setting and saving.

  • How to tell script colse all files and save, but no untitle docs

    Hi everyone 
    I want to colse the open files and save them but no those files which have never been saved.
    I try this script but after ran, all the files are no be saved.
            var docs = app.documents;
                 for (var i = docs.length-1; i >= 0; i--) {
                     if(app.activeDocument.saved == false){
                           docs[i].close(SaveOptions.NO);
                     else if(docs[i].close(SaveOptions.YES));
    can someone tell me what's wrong with the script?
    thanks
    Regard
    Teetan

    var docs = app.documents;
    for (var i = docs.length-1; i >= 0; i--) {
        if (docs[i].saved == false) {
            docs[i].close(SaveOptions.NO);
        else {
            docs[i].close(SaveOptions.YES);

  • HT201412 Have white screen on my 2nd generation ipod touch... is there a way to transfer notes and calendar events onto my computer to save?

    My ipod touch 2nd generation has a white screen... is there ANY way to save any notes and calendar events FROM it ONTO my computer (i.e. reverse sync process)?

    If when you connect the iPod to yur computer iTunes sees it then backup the iPod.
    iOS: How to back up and restore your content
    If not maybe a data recovery company can get the info

  • When I am in word and safe as word doc. it automaticaly saves as pdf??

    when I am in word and safe as word doc. it automaticaly saves as pdf??

    Hey Ted Doan,
    The default program for word must have been Adobe Acrobat which us why the file saves as PDF.
    Please right-click on your word document icon and select 'Open with> Choose default program'.
    Then, a new dialog box appears from where you need to choose 'Word' and click OK.
    Now check and then let me know if its fine now.
    Regards,
    Anubha 

  • "cannot save event. no calendar has been set."  what does this mean and how do i fix it?

    I keep getting the error message when I try to enter a new event or edit an existing event to my calendar:
    "Cannot save event.  No calendar has been set."
    Any ideas on how to fix it?  VERY inconvenient!
    Thanks.
    txwyrick

    Well, there's a lot we don't know ... for example, if you have actually set up a calendar somewhere you're trying to sync to.
    Anyway, with no other information than what you provided, here's a possible troubleshooter:
    iCloud: Troubleshooting iCloud Calendar

Maybe you are looking for

  • Can't print from my laptop to network printer HP CP1515n

    Hi, in our office we have a HP CP1515n printer on the network set to a static ip. Everyone but me can print on it so I guess the printer is set up correctly. Even I was able to print on it till a couple of weeks ago. I don't remmember changing anythi

  • Livecycle: Is there a way to add a new page by choosing what kind of page from a drop down menu

    I am creating a form to be used for patient care, I have multiple pages, the first is an information page, second is an evaluation page, the third is a treatment page. I am hoping to add a drop down menu (Add New Page) with the following in it: 1. Tr

  • External superdrive not working properly

    Hi, I have a 2012 MacBook Pro and I just recently upgraded to Yosemite. My external superdrive will play audio disks in iTunes but, when I try to burn a playlist iTunes cancels the burn with "unknown error occurred (-50)" Also I can't eject the super

  • Wism 1 and AP concurret connection

    Dear Freinds, we have WISM 1 and 1252 WLAN infrastructure . i was designed to accommodate to b/g only later on we have enabled N on it now i have few question which i have no clue 1- How many clients can connect to an 1252 AP ?? 2- after enabling N o

  • Cannot load maps to N70 (w/o GPS)

    I first installed Nokia Maps (ver 1.0 S60 2.8) on my N70 and used once. Then took the memory card and inserted to my laptop. After installing Map Loader on my laptop, I downloaded some maps successfully as shown by the program. Then I put the memory