How can we get the path of the current document?

Hello

I want to store the path of the current document file in a string, I tried the AIDocumentSuite, and

AIAPI AIErr(* AIDocumentSuite::GetDocumentFileSpecification) (ai::FilePath & file).

His ended in prameter conversion error (c 2664). Can someone guide me to get the current path.

Thanks in advance

Farida kaid

file ai::FilePath.

Error AIErr is sDocument-> GetDocumentFileSpecification (line);.

If (error! = kNoError) {}

There was a problem
}

Tags: Illustrator

Similar Questions

  • I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?

    See above

    I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?

    You do backup your bookmark as a .json file?

    Restoration of bookmark

  • How can I get the current path of LUN?

    I want to know the active path for all my lun. How can I get this value?

    Tios thanks!

    Best regards

    Xavier

    VCP4 and professional VCP3 certified VMware.

    -


    If upon that esta o any other campaign respuesta ha sido utility, votalas. Gracias.

    If you find this or any other information useful or appropriate, please consider giving points. Thank you.

    You could do something like that

    $report = @()
    Get-VMHost  | %{
         $esx = $_
         $_ | Get-ScsiLun | %{
              $lun = $_
              $_ | Get-ScsiLunPath | %{
                   $row = "" | Select HostName, LUNname, Path, Active
                   $row.HostName = $esx.Name
                   $row.LUNname = $lun.CanonicalName
                   $row.Path = $_.Name
                   $row.Active = $_.State
                   $report += $row
              }
         }
    }
    $report
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How can I get the current paragraph?

    I want to get the current paragraph where the insertion point is.

    How can I do this in FDK?

    Ch,

    I can answer some of these questions, but if you have decided that this thread is replied, please give credit to Mike.

    About the audit for a FO_Pgf object, you shouldn't have that. I think that there is some obscure cases where F_ApiGetTextRange() gives you an object that is not a paragraph... I forgot exactly but I think it has to with a text graphic subject line or something like that. I could be wrong. In any case, if you have a stream of regular text with an insertion point, you will get a paragraph object.

    This line will abort the operation if any text is selected. Do you really want that?

    If (insertionPoint.beg.objId! = insertionPoint.end.objId)

    This line will abort the operation if several paragraphs are selected. Do you really want that? Without this verification, you will always get the text of the first selected paragraph.

    If (insertionPoint.beg.offset! = insertionPoint.end.offset)

    Otherwise, the code looks OK to me, at least regarding the FDK calls. You have problems with him?

    Russ

  • How can I get the current state "onto the Pixels?

    Hello community,

    Here's the function that creates a switch that handles "snap to Pixels":

    index.html:

    <div id="STP_input" onclick="switchOnOff(this)">
         ...
    </div>
    

    main.js:

    $("#STP_input").click(function () {
         var a = switchOnOff(this);
         if (a) {
              csInterface.evalScript('switchSTP(true)');
         } else {
              csInterface.evalScript('switchSTP(false)');
         }
    });
    

    HostScript.jsx:

    function switchSTP(checkBTN) {
        'use strict';
        
        var condition;
        if (checkBTN === true) {
            condition = true;
        } else {
            condition = false;
        }
    
        var idsetd = charIDToTypeID( "setd" );
        var desc26 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref6 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idtoolsPreferences = stringIDToTypeID( "toolsPreferences" );
            ref6.putProperty( idPrpr, idtoolsPreferences );
            var idcapp = charIDToTypeID( "capp" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref6.putEnumerated( idcapp, idOrdn, idTrgt );
        desc26.putReference( idnull, ref6 );
        var idT = charIDToTypeID( "T   " );
            var desc27 = new ActionDescriptor();
            var idtransformsSnapToPixels = stringIDToTypeID( "transformsSnapToPixels" );
            desc27.putBoolean( idtransformsSnapToPixels, condition );
        var idtoolsPreferences = stringIDToTypeID( "toolsPreferences" );
        desc26.putObject( idT, idtoolsPreferences, desc27 );
        executeAction( idsetd, desc26, DialogModes.NO );
    
        return;
    }
    

    But when I hide the Panel and show once again, that the switch back to the default state, turn on my Panel, not "hook to Pixels" PS settings setting. Is it possible to get the current status 'Hang the pixels' setting? How?

    Best regards.

    See post 8 in this thread:

    Re: Need someone to update or create script: "snap to grid of pixels.

  • How can I get the current date?

    Hello!

    I two EditFields that will act as a filter, so a user can say display me records from here to there.

    I would like to default dates today at 7 days before.

    Here is the code that I currently have:

    Border border = BorderFactory.createSimpleBorder(new XYEdges(1,1,1,1));
    txtStartDate = new EditField("", "");
    txtStartDate.setBorder(border);
    Background txtBackground = BackgroundFactory.createSolidBackground(0xFFFFFF);
    txtStartDate.setBackground(txtBackground);
    add(txtStartDate);
    
    Border borderB = BorderFactory.createSimpleBorder(new XYEdges(1,1,1,1));
    txtEndDate = new EditField("", "");
    txtEndDate.setBorder(borderB);
    Background txtBackgroundB = BackgroundFactory.createSolidBackground(0xFFFFFF);
    txtEndDate.setBackground(txtBackgroundB);
    add(txtEndDate);
    

    Is there something like a DateTime.Now to Blackberry? How can I achieve this? Thanks a lot for the help guys.

    Ok........

    Use this...

    Date date;
    String currentdate = new SimpleDateFormat("dd/MM/yyyy").format(new Date(System.currentTimeMillis()));
    
    ------------------------------------------------------------------------------------Press Kudo to say thank to developer. Also Press the Accept as solution Button when u got the Solution.
    
  • How can I get the current user?

    I want to combine the logic of Publisher and Subscriber in a Flex application. To do this, I need to know what role has the current user (I do not change user roles implementation plan).

    Is this possible?

    Thank you.

    Hello

    I googled: "current user lccs. The 2nd shot gave me the answer =).

    Nigel

  • For the operation of broadcasting how can I get the current network address of BB device

    Hello

    I'm new to the development of BB. I want to develop a Java application or servlet I can send order button to my client devices on BES... I would like to know a few things

    • First of all know if its possiable to apply a base or servlet Java?...
    • How to know current network address of the BB device that uses BES...

    Experts of BB please help... I would like to know I can start with...

    Thanks in advance...

    (I'm in the right forum for these questions)

    Hello

    When you tap on a BlackBerry smartphone, push you to address email or PIN code associated with the device. These can be already known or read the BES.

    Push of browser channel can certainly be handled from a Java application, check on the HTTPDemo (server side) included with the BlackBerry can and JDE plug-in for Eclipse (eJDE) that shows this.

    http://NA.BlackBerry.com/eng/developers/javaappdev/devtools.jsp

    http://docs.BlackBerry.com/en/developers/deliverables/10155/index.jsp?name=http+push+sample+applicat...

    Kind regards

  • How can I get the path to an image?

    I have a selected Image in the page. How can I get the path to the image? I see a "name" property, but gives me just an empty string. I use CS6 and JavaScript. Thank you.

    Rick

    I found what I was looking for:

    var chart = app.selection [0];

    Alert (graphic.itemLink.filePath);

  • In windows movie maker, I'm trying to open an old project. It opens, but there is no video clips - only x or empty clips. How can I get the original film clips show?

    In windows movie maker, I'm trying to open an old project. It opens, but there is no video clips - only x or empty clips. How can I get the original film clips show?

    I did a movie and released a dvd. Then, I moved my files from movie on an external hard drive to store files and free up space on my computer. So I went back to try a pull up the project and got every X / white clips. So now, I rebooted my computer with the video files I removed on the external hard drive and it still shows empty clips.
    Help.

    The red Xs indicate that Movie Maker cannot find the original source files.
    If the files are still available... just right click on the red Xs and go to the
    current location of the files source and you may be able to restore the
    path.

  • How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    Settings > Notifications > Messages > display on the lock screen

  • How can I get the iMovie video files in the photo library?

    How can I get the video files of "iMovie - bibliotek.imovielibrary" in the photo library?

    Is to select your library from the libraries pane and choose my brackets at the top of the screen. Then select the clips you want and share file on the desktop. Then import in photos.

  • My update to Apple Watch has suspended how can I get the update?

    My update to Apple Watch has suspended, how can I get the update?

    What do you mean by "break"?

  • How can I get the AirPort Express 1 utility generation? I lost mine.

    How can I get the AirPort Express, the utility of 1st generation? I lost mine.

    Open the App Store on your device, then press Search at the bottom of the screen.

    Then type: airport utility in the search field of the screen top.

  • How can I get the update iOS 9.3.5?

    How can I get the update iOS 9.3.5?

    Settings > general > software update

  • FireFox is no longer crash recovery of open tabs. Management of tab has changed. How can I get the old behavior?

    All my old tabs are missing after a crash. I chose "view my tabs, windows and last time ', like the start option. Many unwanted changes in tab management happened recently. For example when I close a tab in a window of the two tab, I see a blank screen (see picture). Preview display seems to be broken (see attachment). How can I get the old behaviour back?

    After researching the issue, it seems that the problem was a problem of NoScript configuration. After restoring NoScript to the default values, the tab number disappeared.

    Thanks for your help.

    MELL-

    (~ J99) Also note

    mellpell said

    Looks like it's a known problem with Image Tweek:
    http://forums.mozillazine.org/viewtopic.php?p=14029673#p14029673
    https://github.com/CAFxX/ImageTweak/issues/37
    https://github.com/CAFxX/ImageTweak/issues/40

Maybe you are looking for