[JS] Need Help Removing File extension (in CS2 and CS3)

Hello All.
I have a menu in a dialog that needs to list some file names, but without their file extensions (which will always be .txt in my case). The following is some code that successfully does this in CS3, but I also need it to work in CS2. Do you have any other ways to do this? One code that works in both versions (CS2 and CS3) is ideal.
myNameWithoutExtensionFunction = function( myNameWithExtention ) {
myNameWithoutExtension = myNameWithExtention
myEndOfFileName = myNameWithoutExtension.lastIndexOf( "." )   // get the last period (.) in the filename
if ( myEndOfFileName > -1 ) {
  myNameWithoutExtension = myNameWithoutExtension.substr( 0, myEndOfFileName )
return myNameWithoutExtension
Thanks in advance.
Dan

I realized my mistake. The above code works just fine in CS2. My mistake was elsewhere. The name I was sending to this function wasn't being recognized by CS2. Once I corrected that and sent a valid name to this function it worked. So in case someone needs to remove file extensions, feel free to use the above function!

Similar Messages

  • Need help removing an extension

    I should like to remove an extension called Paragon Software Popup Translation 1.0. This extension does not have a remove button only an enable/disable button. I can disable the extension but I should like to remove it from the Firefox extension list without being forced to do a Reset Firefox.
    I have tried to remove it manually by looking in the Profiles/Extensions directory. However, the extension is not be found there. There I only find the seven other extensions I have and that I want to keep. The Paragon Software extension is nowhere to be found. I have also looked in the Profile directory but I cannot find anything in there which looks like being connected with this extension.
    Are there other places on my Mac where Firefox extensions are kept? Or do anybody know of how to get rid of pests like this.

    Hello FrodeW, extensions that only have a disable button are installed by other software on your computer.
    Check which software install the specific extension and disable or uninstall them from the setting of that program.
    see for your mac in :
    * /Library/Application Support/<vendor>/Extensions/<appid>/
    or
    * ~/Library/Application Support/<vendor>/Extensions/<appid>/
    see for more info : https://developer.mozilla.org/en-US/Add-ons/Installing_extensions?redirectlocale=en-US&redirectslug=Installing_extensions
    thank you

  • Need help placing files into Illustrator, Indesign and opening in Photoshop

    For some reason Illustrator and Indesign CS2 won't go further than the iPhoto Library icon in my "place files" window and Photoshop won't go further than that either when opening files. This was not a problem with the previous version of iPhoto. Exporting singular photos is a pain in the rear, as I use hundreds of photos for my website and advertising. Is there something simple I'm missing?

    This may be of some help:
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 6 the Saving File preferences should be configured: "On First Save: Save Over Current File". Also I suggest the Maximize PSD File Compatabilty be set to Always.
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..

  • Gif and JPG save for web file sizes in CS2 and CS3

    Gif 64 dittered default CS2=2.63KB CS3=4.83KB
    JPG CS2Low=1.42KB CS3=4.03KB
    JPG CS2Medium=1.90KB CS3=4.51KB
    JPG CS2High=3.38KB CS3=5.99KB
    Why? Is there any solution besides keep using CS2 for web?
    Thank's in advance.
    regards
    Fernando Bergamaschi

    Each of the three JPG files increases by the same amount -- 2.61 Kbytes. That sure sounds like some common header block is being added in CS3. Did you check the "Optimize menu" button next to "Preset" just to make double-sure "Include XMP" isn't enabled? Or some other setting like that? Or check both images in Bridge to see if something is being added.

  • IPaletteMgrService in CS2 and CS3...

    I try to use IPaletteMgrService in both CS2 and CS3 on the Mac (10.4.x, PPC only or Universal) and I am going no where... as always, I can get it to compile but the call back is not happening.<br /><br />In the class descriptoion table, I have:<br /><br />Class {<br />    kBscPnlPaletteMgrServiceBoss, <br />    kInvalidClass,<br />    {<br />        IID_IPALETTEMGRSERVICE, kBscPnlPaletteMgrServiceImpl, <br />    }<br />}<br /><br />and implementation as:<br /><br />class BscPnlPaletteMgrService : public CPMUnknown<IPaletteMgrService> {<br />public:<br />    BscPnlPaletteMgrService(IPMUnknown *inBoss);<br />    virtual ~BscPnlPaletteMgrService() {}<br /><br />    virtual void PaletteMgrStarted();<br />          <br />    virtual void PaletteMgrAboutToShutdown() {<br />        SysBeep(33);<br />    }<br />};<br /><br />void BscPnlPaletteMgrService::PaletteMgrStarted()<br />{<br />    SysBeep(33);<br />    CFShow(CFSTR("it's a wonderful world"));<br />}<br /><br />CREATE_PMINTERFACE and REGISTER_PMINTERFACE are provided.<br /><br />Btw, the callback functions' parameters are different in CS2 vs. CS3.  This is the CS3 version.  <br /><br />Any help would be appreciated.<br /><br />pete

    I realized my mistake. The above code works just fine in CS2. My mistake was elsewhere. The name I was sending to this function wasn't being recognized by CS2. Once I corrected that and sent a valid name to this function it worked. So in case someone needs to remove file extensions, feel free to use the above function!

  • I need help removing a malicious program form my mac!

    Hello, I am 99% sure I accidentally acquired/downloaded a malicious program on my mac and I am new to macs and need help removing it!
    I have growl and the other day it notified me that screen sharing, file sharing and web sharing were all turned on at once. As soon as I saw this I quickly got off of the internet and found out how to disable them.
    Also, three programs kept requesting to access the internet and I denied them of course. Their names were: nmbd, netsessionmac1225fd0, and krb5kdc.
    Like I said I am new to macs and need some help fixing this problem. So, if anyone has any ideas that would help a lot.
    I already have screen sharing, file sharing, and web sharing turned off and now it requires a password to access (which i changed after i disabled them) but I want to ask some mac people if I need to do anything else, thanks!

    By the way, a big thank you to everyone who has helped so far..
    Here is the list of my running programs and keep in mind that I do have my firewall turned on as well as file sharing, screen sharing, and web sharing turned off so the suspect program may not be running?
    1905 Activity Monitor MattBurke 2.5 2 28.8 MB Intel (64 bit)
    1915 activitymonitord root 0.7 1 1.2 MB Intel (64 bit)
    1890 AirPort Base Station Agent MattBurke 0.0 4 3.8 MB Intel (64 bit)
    2038 AppleSpell.service MattBurke 0.0 2 6.1 MB Intel (64 bit)
    59 autofsd root 0.0 2 664 KB Intel (64 bit)
    64 avgconfigd root 0.0 4 2.7 MB Intel (64 bit)
    65 avgd root 0.0 8 4.5 MB Intel (64 bit)
    136 avglnsd root 0.0 7 14.6 MB Intel (64 bit)
    63 avgnotifyd root 0.0 7 4.3 MB Intel (64 bit)
    181 avgsched root 0.0 6 4.0 MB Intel (64 bit)
    16 blued root 0.0 2 2.7 MB Intel (64 bit)
    15 configd root 0.0 7 3.1 MB Intel (64 bit)
    137 coreaudiod _coreaudiod 0.0 3 5.2 MB Intel (64 bit)
    21 coreservicesd root 0.0 4 50.7 MB Intel (64 bit)
    3787 cupsd root 0.0 3 2.8 MB Intel (64 bit)
    148 cvmsServ root 0.0 1 692 KB Intel (64 bit)
    11 DirectoryService root 0.0 5 7.0 MB Intel (64 bit)
    14 diskarbitrationd root 0.0 2 1.6 MB Intel (64 bit)
    3726 diskimages-helper MattBurke 0.0 3 12.3 MB Intel (64 bit)
    17 distnoted daemon 0.0 2 1.4 MB Intel (64 bit)
    1872 Dock MattBurke 0.1 3 32.4 MB Intel (64 bit)
    53 dynamic_pager root 0.0 1 444 KB Intel (64 bit)
    3705 FanControlDaemon root 0.0 2 1.5 MB Intel
    1874 Finder MattBurke 0.0 6 134.2 MB Intel (64 bit)
    3332 Firefox MattBurke 3.1 27 247.6 MB Intel
    1878 fontd MattBurke 0.0 2 3.9 MB Intel (64 bit)
    51 fseventsd root 0.0 13 2.6 MB Intel (64 bit)
    1904 gfxCardStatus MattBurke 0.0 2 5.6 MB Intel (64 bit)
    1955 Growl Menu MattBurke 0.0 2 7.7 MB Intel (64 bit)
    1924 GrowlHelperApp MattBurke 0.0 5 13.8 MB Intel (64 bit)
    3732 hdiejectd root 0.0 2 1.6 MB Intel (64 bit)
    50 hidd root 0.7 4 1.8 MB Intel (64 bit)
    1901 HP Event Handler MattBurke 0.0 4 7.3 MB Intel (64 bit)
    0 kernel_task root 1.6 79 172.1 MB Intel
    48 KernelEventAgent root 0.0 3 712 KB Intel (64 bit)
    10 kextd root 0.0 2 3.8 MB Intel (64 bit)
    37 krb5kdc root 0.0 2 1,020 KB Intel (64 bit)
    1 launchd root 0.0 3 1.4 MB Intel (64 bit)
    193 launchd MattBurke 0.0 2 1.0 MB Intel (64 bit)
    1894 LinkScanner Agent MattBurke 0.0 8 9.3 MB Intel (64 bit)
    1893 Loader Agent MattBurke 0.0 2 3.8 MB Intel (64 bit)
    1853 loginwindow MattBurke 0.0 2 12.7 MB Intel (64 bit)
    1909 Logitech Control Center Daemon MattBurke 0.0 4 6.9 MB Intel
    18 mDNSResponder _mdnsresponder 0.0 3 2.3 MB Intel (64 bit)
    46 mds root 0.1 5 99.4 MB Intel (64 bit)
    3712 mdworker MattBurke 0.0 3 11.6 MB Intel (64 bit)
    3717 mdworker _spotlight 0.0 3 21.4 MB Intel (64 bit)
    1897 netsessionmac1225fd0 MattBurke 0.3 8 3.7 MB Intel
    12 notifyd root 0.0 2 556 KB Intel (64 bit)
    35 ntpd root 0.0 1 760 KB Intel (64 bit)
    1875 pboard MattBurke 0.0 1 504 KB Intel (64 bit)
    175 prldispservice root 0.1 15 8.0 MB Intel
    147 prl_naptd root 0.0 3 3.0 MB Intel
    1908 RescueTime MattBurke 0.3 7 11.6 MB Intel
    24 securityd root 0.0 2 3.6 MB Intel (64 bit)
    62 sh root 0.0 1 304 KB Intel (64 bit)
    66 socketfilterfw root 0.0 3 7.2 MB Intel (64 bit)
    13 syslogd root 0.0 4 752 KB Intel (64 bit)
    40 SystemStarter root 0.0 2 656 KB Intel (64 bit)
    1873 SystemUIServer MattBurke 0.0 4 22.9 MB Intel (64 bit)
    1907 Temperature Monitor Lite MattBurke 0.9 4 6.0 MB Intel
    1949 usbmuxd _usbmuxd 0.0 3 1.2 MB Intel (64 bit)
    1883 UserEventAgent MattBurke 0.0 3 5.3 MB Intel (64 bit)
    1854 WindowServer _windowserver 1.3 7 76.0 MB Intel (64 bit)

  • I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    The way that Dropbox works is that it keeps a copy of all your files in your local Dropbox folder on your hard drive (which is, by default, directly under your home folder). Adding files to that folder will sync them to the Dropbox server.
    You do of course have to download the Dropbox application to enable this (download link at the top right of http://dropbox.com ).
    Matt

  • Need Help Removing Background

    I need help removing a background from a picture.  My boss wants some t-shirts made but the only image I have is one with a tie-dye background and I need it to just be the black and white that is on the image.  I have been trying for 2 weeks to do this and I can get real close but it leaves the colors around the edges and I need this gone.  Any ideas?  Anyone that can help me out?  I have the original photo and the one with almost everything removed if someone can help me fine tune the rest that would be great.

    You've done all the hard work and are almost there!
    Starting with your b/w rendition, duplicate the background layer, and shut off the visibility of the background layer. Work on background copy layer
    Go to Enhance menu>convert to black and white>vivid landscape style
    Open a blank layer between the background and background copy layers and fill this layer with white
    Make the background copy layer active and use the eraser tool to clean up a few smudges on the background copy layer
    Open a blank layer at the top of the stack, and press CTRL+SHIFT+ALT+E to create a stamp visible layer
    With the rectangular marquee tool, make a rectangular block selection of "DRIVE-IN THEATRE" and place this on its own layer (CTRL+J). Make the blending mode multiply, then duplicate this layer 3-4 times.
    For the text on the bottom, suggest that you erase this and replace the information with the type tool.

  • TS1389 I need help removing UAC from itunes..

    I need help removing UAC from itunes so it will not allow me to open itunes. Everything I have read from other comments that you shouldn't turn off your user account control. I just to be able to open itunes. Can anyone help me with this problem?? Greg, ogrady612@yahoo,com

    I had this problem too but you do not need UAC to be turned on.
    Click on start and search for 'uac' in the search box at the bottom and click on 'Change User Account Control Settings' when it comes up. Move the slider to the bottom when the window appears and save the changes and your done!
    It's worked for me and my uac has been off for months without causing me any problems!
    Hope this helped

  • I need help removing CS3 from Windows 7 so I can reinstall

    I need help removing CS3 from Windows 7 so I can reinstall

    Before trying to remove try re-installing CS3 right on top of the current install.  Often re-installing Photoshop on top of itself fixes the install.  If it does be sure to apply the cs3 updates.
    Download Adobe CS4 and CS3 Free Trials Here (incl. After Effects) | ProDesignTools
    your product key can be retrieved from here https://www.adobe.com/account/my-products-services.html
    use these links for the updates.
    Adobe - Photoshop : For Macintosh
    Adobe - Photoshop : For Windows

  • Can't open pictures taken with Kodak DC290 with kdc file extension.  Camera and kodak software long gone.  Please help

    Can't open pictures taken with Kodak DC290 with kdc file extension.  Camera and kodak software long gone.
    Looking for some way to convert these kdc files to jpeg or any format that can be read with photoshop elements.
    any suggestions would be greatly appreciated.
    thanks
    kelly

    kelly,
    If the information on this site is correct, Irfanview may open the file for you.
    .kdc Extension - List of programs that can open .kdc files
    If it works, then you can save as JPEG via Irfanview
    Irfanview is a great, free, program which you can down load.
    www.irfanview.com

  • HELP! Files won't open and previously had Firefox icon instead of DW icons!  Leap Year thing?

    Hi!  I went to update my website, which I do every night before the first day of every month and all the files had a FIrefox icon instead of the usual Dreamweaver one.  I have shut down, reinstalled DW MX 2004 but the files still do not open.  The icons have now changed to DW but they are not opening with right click, opening from Applications folder, double clicking the file, from get info and open with DW.  I am stumped. HELP!  Need to update for March 1st.
    Is it something to do with Leap Year 29th Feb?  Checked the clock in preferences but can't see how this affects it.
    Firefox is always updated but the latest version does not seem to be as efficient as previous upgrades.  We installed Chrome as well.  Do they interfere with each other?

    Hi Ken
    I wish the 7.1 updater download had helped but it didn¹t.  All the files
    were backed up before the installation, which went fine.
    Mac 10.5.8
    We used Disc Warrior to defrag the hard drive, which did not make a
    difference.
    We recently started using Chrome, so now have 3 browsers in the dock,
    Safari, Firefox and Chrome.  Do they interfere in any way with each other?
    The files, which I hadn¹t touched for a month as I update on a monthly
    basis, initially had the Firefox icon.
    Below is the message to send to Apple, which did not go through their report
    system!  A little disillusioned with the service!
    Model: iMac9,1, BootROM IM91.008D.B08, 2 processors, Intel Core 2 Duo, 3.06
    GHz, 4 GB
    Graphics: kHW_NVidiaGeForceGT130Item, NVIDIA GeForce GT 130,
    spdisplays_pcie_device, 512 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8E),
    Broadcom BCM43xx 1.0 (5.10.91.22)
    Bluetooth: Version 2.1.9f10, 2 service, 0 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: WDC WD1001FALS-40K1B0, 931.51 GB
    Serial ATA Device: PIONEER DVD-RW  DVRTS08
    USB Device: Built-in iSight, (null) mA
    USB Device: Keyboard Hub, (null) mA
    USB Device: iLok, (null) mA
    USB Device: Apple Optical USB Mouse, (null) mA
    USB Device: Apple Keyboard, (null) mA
    USB Device: Deskjet 3840, (null) mA
    USB Device: BRCM2046 Hub, (null) mA
    USB Device: Bluetooth USB Host Controller, (null) mA
    USB Device: IR Receiver, (null) mA
    FireWire Device: d2 quadra (button), LaCie, 800mbit_speed
    Does not mean a thing to me.
    I am not late with updating the site, which is about New Zealand culture,
    month by month (www.englishteacher.co.nz). Probably only the third time I
    have been late since 2005. Not a huge amount of traffic, ~300 a month and
    free access to content but I would like to solve this problem.
    Could a reciprocal link have caused a problem?
    At my wits end.
    I really appreciate the help though.
    Cheers Yvonne
    From: Ken Binney <[email protected]>
    Reply-To: <[email protected]>
    Date: Wed, 29 Feb 2012 06:42:11 -0700
    To: Yvonne and Bill Hynson <[email protected]>
    Subject: HELP! Files won't open and previously had Firefox
    icon instead of DW icons!  Leap Year thing?
    Re: HELP! Files won't open and previously had Firefox icon instead of DW
    icons!  Leap Year thing?
    created by Ken Binney <http://forums.adobe.com/people/Ken+Binney>  in
    Dreamweaver - View the full discussion
    <http://forums.adobe.com/message/4236682#4236682>
    Not necessarily related, but did you also install the 7.1
    updater? http://www.adobe.com/support/dreamweaver/downloads_updaters.html
     Windows or MAC?
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either reply
    to this email or visit the message page:
    http://forums.adobe.com/message/4236682#4236682 To unsubscribe from this
    thread, please visit the message page at
    http://forums.adobe.com/message/4236682#4236682. In the Actions box on the
    right, click the Stop Email Notifications link. Start a new discussion in
    Dreamweaver by email
    <mailto:[email protected].ad
    obe.com>  or at Adobe Forums
    <http://forums.adobe.com/choose-container!input.jspa?contentType=1&container
    Type=14&container=2240>  For more information about maintaining your forum
    email notifications please go to
    http://forums.adobe.com/message/2936746#2936746.

  • Need help with how to reset bios and admin password to reformat hard drive in 8440p elitebook.......

    need help with how to reset bios and admin password to reformat hard drive in 8440p elitebook? removal of cmos, resetting laptop, using cccleaner, windows password recovery and hiren's was noneffective, any help is appreciated. thanks

    Hi,
    As your notebook is a business class machine, security is more stringent - the password is stored in non-volatile memory and there are no 'backdoor' passwords.  Your best option would be to contact HP regarding this.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • I have tried everything I know to retrieve the iPhoto Library app.  I detest this new Photo app, which obviously wasn't designed with photographers in mind.  I desperately need help in retrieving the old app and have not been able to do it so far.

    I have tried everything I know to retrieve the iPhoto Library app.  I detest this new Photo app, which obviously wasn't designed with photographers in mind.  I desperately need help in retrieving the old app and have not been able to do it so far.  I have gone to my app folder and tried to update my iPhoto Library.  I have gone to my trash and brought it over to my desktop and still cannot use it.  Please help!

    Try this fix discovered by User photosb189:
    From Finder, hold down the option key on your keyboard and click on the Go menu at the top of the screen
    Select Library from the drop down menu
    Then navigate to Application Support > iLifeAssetManagement > assets
    Right click on the 'sub' folder and choose Compress
    Drag the resulting zip file to your Desktop (as a backup)
    Go to your System Preferences and choose iCloud
    Turn OFF the iCloud Photos option
    Go back to Library > Application Support and DELETE the iLifeAssetManagement folder
    Now, in System Preferences, turn the iCloud Photos option ON
    iPhoto should now be able to launch. Give it enough time to re-download your Photo Stream content. if you are missing any of your My Photo Stream photos (more than 30 days old), unzip the sub folder on your desktop and drag that into iPhoto.

  • I need Help with the dynamic link feature in CS3

    Hi I was wondering if anyone could help me with an issue I am having? I have the adobe cs3 master collection. Having watched tutorials on the dynamic link feature my version seems not to have the same options as those I have viewed. I wish to send my premiere video creation to encore using dynamic link, however when I click "file" and then "adobe dynamic link" the only options available are about "adobe after effects". I can export to encore however I am only alloowed to export one premiere sequence to one new encore file, I cannot create an encore file and import several premiere sequence into the same encore project. That means currently I can only have an encore creation with one premiere sequence in it, and I have no adobe dynamic link. Any help anyone could offer would be greatly appreciated.

    Thanks very much for that guys but my premiere media encoder only lets me export as: MPEG1, MPEG1-VCD, MPEG2, MPEG2 blu-ray, MPEG2-DVD, MPEG2-SVCD, H.264, H.264 blu-ray, Adobe Flash Video, Quicktime, Real Media, Windows Media. Are any of these formats DV AVI?
    Am I to export my videos direct to encore or save them elsewhere (e.g desktop). It seems that I cannot export sequences from different premiere projects to the same encore project.
    Sorry if any of these questions seem obvious, I am just new to premiere and keen to do things right from the off.
    Many thanks again guys.
    Date: Tue, 24 Nov 2009 19:32:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: I need Help with the dynamic link feature in CS3
    Harm is correct.  For SD DVD, exporting as a DV AVI file from Pr will give you good results.  Encore's Automatic Transcoding will give you maximum quality for the available disc space.
    -Jeff
    >

Maybe you are looking for