Getfilename into a PMString without file's extension

Hi guys,
I am wondering whether it is possible to get the filename of a file without its extension.
For example when i call the following code on the files "test.indd", the whole filename, with extension .indd is returned.
PMString truncP = idFile.GetFileName();
I want to get only the word "test".
Failing such a possibility, is some sort of PMString manipulation possible to extract only the substring from character 0 to position of character "."
I cant do that in SDK while this is fair simple in C++. Been looking in the sdk doc for the PMString members and I keep trying things but they dont work out. But am sure its fairly simple to achieve.
Thanks
Alicia

Hello Alicia and Nadia:
In the file SnpManipulateAssignment.cpp (comes with the CS3 SDK--don't know about earlier versions) you can find the following bit of code:
IDFile sysFile = fileChooser.GetIDFile();
/* irrelevant code deleted */
PMString baseFileName;
FileUtils::GetBaseFileName(sysFile, baseFileName);
HTH!
John

Similar Messages

  • File Mimetype/Extension and media metadata

    Hello-
    How would you get...
    1. A file's extension?
    2. A file's mimetype?
    3. The meta data of a media file?
    Thanks.

    Hi,
    You can get the file extension by using fileobj.extension
    where fileobj is an instance of class File.
    I don't think there is a way to get the file's mimetype.
    You can get metadata about an MP3 file using the
    flash.media.Sound class. There's no built-in way to get metadata
    about images without loading them fully into a Loader or Image
    control.
    Though you can actually examine the file's contents to get
    the metadata. (That will be format specific and there are no
    libraries to help you out)

  • CFHTTP problem - is file-type extension required

    Hello,
    Running CF8 on Win2003/IIS. 
    I have the following simple code to check a value from another server:
    <cfhttp method="get" URL= "http://server.somewhere.com/websvc/util?a=doHTMLRequest&event=workgroupstat"   throwonerror="yes">
    <cfset theContent = "#cfhttp.FileContent#">
    <cfoutput>#theContent#</cfoutput>
    I have also tried:
    <cfhttp
      method="get"
      url="http://server.somewhere.com/websvc/util">  (with and without the ? after the word util)
      <cfhttpparam name="a" type="URL" value="doHTMLRequest">
      <cfhttpparam name="event" type="URL" value="workgroupstat">
    </cfhttp>
    The URL that is shown above returns nothing when using it within CFHTTP. If I change the URL to http://www.google.com or whatever I get the code of that page assigned to my theContent variable as expected 
    From a browser, the URL used in the cfhttp function above works fine. The request returns a simple HTML file with the following code from which I need to pull the agents_available data:
    <HTML><HEAD><TITLE>Agents Available</TITLE></HEAD><BODY><H2>workgroup:Chat</H2><H2>agents_available:1</H2><H2>agent s_logged_in:1</H2></BODY></HTML>
    I cannot understand why I can call any other page from the internet (and our network) and put it into my theContent variable but I can't call this one.  Could it be something in the structure of the URL??
    I'm thinking that the CFHTTP function cannot properly format the request without the file-type extension.
    Any ideas are appreciate.  Regards, Jerry

    Hi Ian,
    I tried your suggestions.  Used Firefox with FireBug and LiveHTTP Headers and nothing appears out of the ordinary except the Content-Length which is always 0.  It's not being redirected.  The response is 200 OK.
    i.e.:
    cfhttp.errorDetail: 
    cfhttp.text:  YES
    cfhttp.statusCode  200 OK
    cfhttp.MIMEType  Unable to determine MIME type of file.
    cfhttp.header  HTTP/1.1 200 OK Set-Cookie: JSESSIONID=88760F22E9FA8717DE807D6F1F758E9A; Path=/websvc Date: Thu, 04 Jun 2009 17:04:37 GMT Content-Length: 0 Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET
    But when the URL is called directly from a browser the Content-Length is not 0.  It is 148 bytes.
    I'm using:
    <cfset Mokrynski.PageName = "_">
    <cfsetting showdebugoutput="no">
    <!---cfhttp   method="get"   url="http://server.somewhere.com/websvc/util">;  
    <cfhttpparam name="a" type="URL" value="doHTMLRequest">  
    <cfhttpparam name="event" type="URL" value="workgroupstat">
    </cfhttp--->
    <cfhttp   method="get"   url="http://server.somewhere.com/websvc/util?a=doHTMLRequest&event=workgroupstat" />
    <cfset agentCount = (cfhttp.fileContent)>
    <cfoutput>#agentCount#</cfoutput>
    <cfoutput> <p>cfhttp.errorDetail:  #cfhttp.errorDetail#</p>
    <p>cfhttp.text:  #cfhttp.text#</p>
    <p>cfhttp.statusCode  #cfhttp.statusCode#</p>
    <p>cfhttp.MIMEType  #cfhttp.MIMEType#</p>
    <p>cfhttp.header  #cfhttp.header#</p>
    </cfoutput>
    Note that there are two methods I've used - 1 used commentd out in this code.  If i change the url in the cfhttp function to ANYTHING else I get the expected result - goog.com, our site, cnn.com, whomever but not from this URL which clearly works from a browser.
    Thanks, Jerry

  • How can I convert my Tiger DVD into a CD without spending more money?

    How can I convert my Tiger DVD into a CD without spending more money and time? I've spent over seven hours trying to upgrade an iMac 350 Hz OS 9.1 to Tiger. I have changed the iMac firmware to 4.1.9, but found that my Panther disc was only an OSX Upgrade, although the 3 cds are labeled as Installation Discs. Since I have a Tiger disc I thought I would use that. Unfortunately, my iMac only reads CDs, not DVDs. I tried networking the iMac to my G5, but upon shutdown, the OSX disc cannot be accessed. I copied the DVD files to my iMac hard drive, but again, the OSX disc cannot be accessed after shutdown.
    Is there a way I can burn a CD from the files of my Tiger DVD to get this task accomplished?

    Excuse me, but I never thought of that, nor did I have any intention of trying to rip off your company.
    I purchased four iPods for my family this Christmas. I have six iMacs just sitting around not being used. I thought that I would turn one into an iPod work station, so everyone can use one computer to recharge and hook up to iTunes 7.
    Unfortunately, iTunes does not work very well in OS9. Apple decided not to continue to support OS9 very well. I’ve spent several hours attempting to upgrade the iMac so I could set up iTunes 7. Unfortunately, my 3 Panther Installation Discs were mislabeled, and did not allow me to install OSX over OS9. My OSX 10.2.7 Installation Disc is a DVD, and my Tiger Installation disc is a DVD. Neither usable to update the iMac.
    All I want to do is set up a dumb iMac as a network interface to my G5 because I've use all of the G5's ports for our recording studio and the iPods need external power source if they are plugged directly into the G5.
    If you could show me an easier way to run iTunes 7 on the iMac I wouldn't be as ****** off as I am at Apple for not supporting the 9 older computers I own with usable help and upgrades.

  • Importing users into WGM from csv file issues/crash

    Hi,
    i've been importing user information from csv files into WGM via the +server >  import+ function .
    It worked the first few times but now when i try the import progress bar pops up and promptly disappears without any thing importing.
    i've tried restarts, new admin account, reinstalled  WGM.
    I've also trashed some pref but i don't really know which ones i should be losing.
    The servers an OD master.
    any help would be appreciated.
    as a last resort what do i need to backup/save if i were to format/reinstall osx server? keeping my settings etc.....
    thanks
    paul

    What I did was:
    Exported the user list, to create an XML file in the correct format.
    Using this format, I created a spreadsheet in Excel (sorry Apple), and in the final column I created a field that concatenated the information I wanted in the ':' deliminated format of the previously export XML.
    Then just copy and past via pico into a pure text file and imported that.
    You have to be careful with comments in Passenger, using special characters (';!@#$%^ and others can cause the WGM to fail and crash.

  • Unable to install the Novell File Upload extension to upload directories

    Using Firefox 9.0.1 on Windows 7 I'm unable to install the Novell File
    Upload extension to upload directories.
    As per the pop-up help page, I've added
    extensions.install.requireBuiltInCerts in about:config and set it to
    false but that has made no difference, even after restarting the browser.
    I've also tried this with Firefox 9.0.1 on Mac OS X Snow Leopard
    (10.6.8) - unsupported I know - with the same result.
    Do I really have to use Internet Explorer? Urgh!
    Simon
    Novell/SUSE/NetIQ Knowledge Partner
    Do you work with Novell technologies at a university, college or school?
    If so, your campus could benefit from joining the Novell Technology
    Transfer Partner (TTP) program. See novell.com/ttp for more details.

    On 19/01/2012 18:11, craig wilson wrote:
    > You should trust the ZCM CA and the error will go away.
    > It's not expected to get that error.
    > Managed Devices especially will have loads of issues if the ZCM CA is
    > not trusted.
    So, with Firefox, first hitting http://<server>/zenworks/ after install
    displays
    --begin--
    This Connection is Untrusted
    You have asked Firefox to connect securely to <server>, but we can't
    confirm that your connection is secure.
    Normally, when you try to connect securely, sites will present trusted
    identification to prove that you are going to the right place. However,
    this site's identity can't be verified.
    What Should I Do?
    If you usually connect to this site without problems, this error could
    mean that someone is trying to impersonate the site, and you shouldn't
    continue.
    [Get me out of here!]
    > Technical Details
    > I Understand the Risks
    ---end---
    so I click "I Understand the Risks", [Add Exception...] then [Confirm
    Security Exception] at which point http://<server>/zenworks/ correctly
    displays and I can log in. Checking Tools | Options | [View
    Certificates] shows an (Unknown) server certificate for <server> with a
    Permanent lifetime.
    Is that what you mean by trusting the ZCM CA?
    Perhaps this is why Firefox 9.x is not a supported browser though I
    thought that was more to do with Mozilla treating major version numbers
    as minor ones? Gee if only Firefox hadn't automatically upgraded itself
    from 8.x to 9.x!
    Thanks.
    Simon
    Novell/SUSE/NetIQ Knowledge Partner
    Do you work with Novell technologies at a university, college or school?
    If so, your campus could benefit from joining the Novell Technology
    Transfer Partner (TTP) program. See novell.com/ttp for more details.

  • How to import pictures into excel sheet without using report generation

    Dear Friends
    I want to know how to import the picture or picture file into excel sheet without using report generation..
    kindly come up with any suggestions or example code
    Regards
    Karthick
    Solved!
    Go to Solution.

    Thank you Rajesh 
    i am going through that vi
    Rajesh Nair wrote:
    Please go through below link
    http://zone.ni.com/devzone/cda/epd/p/id/3638
    Eventhough one subVI is missing i think it will be usefull for you.
    Regards
    Rajesh R.Nair
    Rajesh Nair wrote:
    Please go through below link

  • 11.3 File Upload Extension

    Since upgrading to 11.3 we're unable to install the file upload extension for firefox (ESR 24.5) on OS X (tried 10.8 and 10.9 - the extension works fine in win7). The link "Install the Novell File Upload extension to upload directories" is there but clicking doesn't do anything. It was working under 11.2.4, but hasn't worked since we upgraded to 11.3. Has anyone else run into this and found a solution?

    On 30/05/2014 13:41, Shaun Pond wrote:
    > the file upload extension never was supported on Macs - are you sure it
    > used to work?
    Whilst I think you're correct the documentation needs updating since it
    currently implies that whilst IE is supported on Windows (well duh!) and
    Firefox 26.0 and 27.0 on Windows and Linux, Firefox ESR 17.0 and 24.0
    are supported on all platforms due to absence of Windows and/or Linux
    qualifiers.
    From
    https://www.novell.com/documentation...uirements.html
    --begin--
    The following web browsers are supported:
    * Internet Explorer 8 (32-bit only) on Windows Vista, Windows 7, Windows
    Server 2003, Windows XP, Windows Server 2008, and Windows Server 2008 R2
    * Internet Explorer 9 (32-bit only) on Windows Vista, Windows 7, Windows
    Server 2003, Windows XP, Windows Server 2008, and Windows Server 2008 R2
    * Internet Explorer 10 (32-bit only) on Windows Vista, Windows 7,
    Windows Server 2003, Windows XP, Windows Server 2008, Windows Server
    2008 R2, Windows 8, and Windows Server 2012
    IMPORTANT:
    * Internet Explorer versions prior to version 8 are not supported.
    * Internet Explorer 11 is not supported; there are a few known issues
    related to the support of this version of Internet Explorer in ZENworks.
    * Firefox ESR version 17.0 and 24.0
    * Firefox version 26.0 and 27.0 (including any patches) on Windows and
    Linux devices
    ---end---
    I'll report it (along with missing CSS formatting and some broken links
    I just found).
    HTH.
    Simon
    Novell Knowledge Partner
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below. Thanks.

  • Converting OBIEE Answers / Interactive Dashboards into .pdf or .xls files

    Hi all;
    I’m a freshie here as well as in Business Intelligence industry. Right now, without prior knowledge about this tool, I’m working in OBIEE answer.
    Is it possible for us to convert OBIEE answer report/dashboard into .pdf or .xls files? Other tools like Cognos and Business Object have their own utilities to convert the tool’s reports into those formats. I believe OBIEE also have that essential, but untill now, i couldn’t find it.

    You can download Reports on Dashboard to PDF and HTML from:
    Click Printer Friendly icon placed at bottom left corner and PDF or HTML.
    You can download individual reports on Dashboard:
    Page Options ==> Edit ==> Report Properties ==> Report Links. Check the options you want to see below the report.

  • Hi, extract data from xml file and insert into another exiting xml file

    i am searching code to extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    1st xml file which has two lines(text1.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xs:PrintDataRequest xmlns:xs="http://com.unisys.com/Anid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    <xs:Person>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    These two lines has to be inserted in the existing another xml(text 2.xml) file(at line 3 and 4)
    Regards,
    bubbly

    Jadz_Core wrote:
    RandomAccessFile? If you know where you want to insert it.Are you sure about this? If using this, the receiving file would have to have bytes inserted that exactly match the number of bytes replaced. I'm thinking that you'll likely have to stream through the second XML with a SAX parser and copy information (or insert new information) as you stream with an XML writer of some sort.

  • Extract data from xml file and insert into another exiting xml fil

    hello,
    i am searching extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    Regards,
    Zhuozhi

    If the files are small, you can load the target file in a DOM document, insert the data from the source file and persist the DOM.
    If the files are large, you probably want to use a StAX or SAX.

  • How to archive multiple outlook 2007 mail folders into a single archive file?

    I just migrated a client from Eudora (yeah ... I know ;-) to Outlook 2007.
    He has previously set up a folder within Eudora for each year's worth of old mail going back a number of years.
    I'd like to archive the oldest 5 years or so of mail into a single archive, but the manual archiving function in Outlook appears to want to create a separate archive file for each mail folder. Is there a way to select multiple folders and place them in a
    single archive or must I create archives for each folder and then open them back up in Outlook and merge them?
    Sorry, I'm sure this has been answered before, but I can't find it....

    Thank you Diane!
    I applied the registy update and it the (MANUAL) archive action still picks up no files....
    But .......... I've just discovered the "other" Eudora import problem with which I'm sure quite familiar ...
    HTML formatted e-mails being "converted" to almost unintelligible plain-text format....  :-(
    This is a pretty big deal to me and worth paying up for a solution ... I found the Aid4Mail and Stellar MBOX to PST products recommended on your company's website.
    I think I will be buying one or the other of them .........
    Do you think one is superior to the other?
    The PST file on my new machine is now ~1.5Gb populated with all the folders from my old Eudora account and LOTS of hosed up HTML  --> plaintext mail
    I have the PST in operation for other functions (calendar / Todo / iPhone sync). so would like to Delete all the "old" Eudora folders leaving just   "IN" and OUT and a bit more then have
    either Aid4Mail or MBOX2PST import the Eudora mail correctly into my existing PST file but I'm not sure that's a reasonable expectation...
    In "additional" expectations ... maybe these programs would import with correct time-stamps and fix my archiving issue also  ;-)  ?
    Thanks for any input... you are without a doubt the smartest person on the planet when it comes to Outlook, I've been following your work for many years!
    Jim

  • How to find files by extension in Finder or Spotlight?

    Hi.
    This is shame but I was faced with problem which I can't solve in Finder/Spotlight — I can't search files by extension. May be I don't know something? Keyword "Kind" too abstract for this and searching not by exact extension. Wildcards never worked in spotlight. Thoughts?
    P.S. Yes, I can do for example in terminal 'find . -name "*.txt" | xargs open -a BBedit' but this is not working for all apps and I don't want to return to eighties

    dusty thread, but for those arriving from google, it is (supposedly) possible to add File Extension to the search options available:
    in Finder hit Cmd+F to open the Spotlight interface (without requiring a string to search for)
    Hit the search parameter dropdown (by default "Kind")
    Select 'Other'
    Find and tick 'File Extension' from the list to have it show up in the short list.
    I say 'supposedly' because its not working for me when i search for 'psd' on 10.8.2
    Hope it helps someone, Cheers, Tim

  • Does Pr embed any meta data into the finished (exported) files?

    I'm worried that it embeds my name, username or something like that into the finished movie files intended for distribution/playback. Is this the case?
    If not, does it embed any kind of meta data? Perhaps that it was made with Premiere? Photoshop seems to add that to every file.

    Many formats do not support MetaData, so depending on your chosen format, it is probably not even possible. Then, even where it is, such as WMV's and DRM, PrPro will not do that without direct input from you, and might not even be able to do that, if you wished.
    Good luck,
    Hunt
    @ Joe,
    Glad that it does not embed my arrest record (see Video Lounge thread: http://forums.adobe.com/thread/1167864?tstart=0 )...
    Hunt

  • Need help compiling external jar files into my one jar file from cmd line

    Here is my problem, let me see if I can explain it right:
    I am making a jar file on my development computer that will run my java project. In this java project, it references a couple Java3D jar files. On my development computer, I create the jar file and it runs correctly, but when I move that jar file over to the test computer, the parts of the application needing those Java3D jars are not found in my jar I created. I isolated the problem and it is because those Java3D jar files I needed are not on my test machine. But that is the way I need it to be. I need it so that when I compile all my code on the development machine, I need it to also compile those two Java3D files into my one jar that I move to the test machine. You get what I'm saying? I must do all the compiling from the command line and have only one jar file to put on the test machine that contains all my compiled code and the two Java3D files needed to run some of the applications in the project.
    Here a brief sample of what I'm doing:
    To compile my java files in my project, I simply to this for all my files:
    javac file.java
    javac file2.java... and so on for all my java files.
    Then I create my jar file:
    jar -cfm MyJar.jar manifest.mf file.class
    jar -fmu MyJar.jar manifest.mf file2.class... and so on for all my class files.
    Also when compiling my jar file, I do this thinking that it would include the two Java3D jars into my one jar file:
    jar -fmu MyJar.jar manifest.mf jars/j3d-org-images.jar
    jar -fmu MyJar.jar manifest.mf jars/j3d-org.jar
    My manifest file looks something like this:
    Manifest-Version: 1.0
    Main-Class: Main
    Class-Path: jars/j3d-org.jar jars/j3d-org-images.jar
    Do I have to have that Class-Path in there pointing to those jar files? Those jar files will not exist on my test machine because the directory structure will not be the same. I've tried a manifest without specifying my Class-Path to those jar files, but I get the same problem when I run my application on the part that needs the Java3D files.
    The error I am getting is that there is a RasterTextLabel class inside one of those Java3D jar files that my application cannot access because those jar files are not on my test machine.
    So basically what I really need to know is how I get those two Java3D jar files compiled into my one jar file that I move to a test machine and run with the following command:
    java -jar MyJar.jar
    Can anyone help me??
    Thanks.

    Here what you need is to have all the files present in a single jar file, and the classpath is set properly to the required jar files.
    Do the following in steps:
    1)
    Create a custom manifest file,say mymanifest.mf, with the following contenets, put it in current directory:
    Manifest-Version: 1.0
    Created-By: 1.4.0_01 (Sun Microsystems Inc.)
    main-Class: Main
    Class-Path: jars/j3d-org.jar jars/j3d-org-images.jar <press ENTER key>
    2)
    jar -cfm MyJar.jar manifest.mf file.class
    jar -fmu MyJar.jar manifest.mf file2.class... and so on for all class files.
    3)
    jar -fmu MyJar.jar manifest.mf jars/j3d-org.jar
    jar -fmu MyJar.jar manifest.mf jars/j3d-org-images.jar
    (Make sure that j3d-org-images.jar and j3d-org.jar are present in a subdirectory called 'jars')
    Now you would be able to run,
    java -jar myjar.jar

Maybe you are looking for

  • Cost Analysis by Sale Order

    Hello, I'm seeking to enable in BI a Cost Analysis Scenario with repect to the <b>Sales Orders</b>. That is, something similar to the analysis you can easily perform in the R/3 area <i>Accounting -> Controlling -> Product Cost Controlling -> <b>Produ

  • Some Sent messages are missing

    My wife has noticed that about 5-10% of the emails she sends are not in the Sent folder. When we checked the Console it gives the following error: Error (null) occurred while trying to append messages to outgoing store. Ignoring and proceeding delive

  • I'm on FF beta track; where can I report issues I see so developers can work on them?

    I'm not a developer but I receive beta releases for the desktop version (for Mac) which, of course, sometimes have issues. I'd like to help with Firefox' improvement by letting developers know what I experience. Where are users supposed to post the p

  • My skype credit of € 48,00 has suddenly disappear...

    at the End of september 2014 I have open Skype Credit of 50,00 Euro. at the end of october 2014 My credit was still 48,00 Euro but suddenly Skype connection  started to have problems and I cancelled and reistalled Skype softaware on my smartphone. Wh

  • Filters Won't Work in CS3 - Get "file system I/O error" message

    Using CS3 on Mac G5, OS 10.4, and some Photoshop filters (e.g. Liquify) won't open, getting the message: "A file system I/O error has occurred." Some filters do open, but others fail. Have tried reinstalling CS3, trashing preferences, unlocked permis