JS CS3 republish the image again link path

I put a whole script that resizes images in a doc. What I've been able to do is rename the resized image and then link to the renamed images. I wish I could have all the resized images saved in the folder by using the name of doc is not difficult. What I find difficult is the path to this folder to reedit.

for example:

myLinks var = app.activeDocument.allGraphics;
var myFpath =. itemLink.filePath myLinks [0]
var myFname =. itemLink.name myLinks [0]

(($.write(myFpath.replace(myFname,app.activeDocument.name+"/"+myFname) + '\r');

Returns C:\hold\Untitled-1/file_24791_Scaled.tif

If I try to change + ' / ' + to + "-" + the remaining code is commented I also tried "/------/ ' who returned.

should I try using replace to return /C/hold/Untitled-1/file_24791_Scaled.tif that should work on PC and Mac?

Any suggestion would be appreciated.

Cheers, John.

It is not fully tested - is not a Mac right now, but I would like to use the following approach:

myGraphics = app.activeDocument.allGraphics var;
aLink myGraphics = var [0] .itemLink;
var myFname = aLink.name
var myFpath = aLink.filePath;
aFile var = new File (myFpath);
var aFolder = aFile.parent;
var aFolderPath = aFolder.absoluteURI;
If (File.fs == "Windows") {}
var aNewFolder = aFolderPath + "/" + app.activeDocument.name.match (/(.*)-.) [ ^\.] + $/) [1] + "/" + myFname;
}
Else if (File.fs == "Macintosh") {}
var aNewFolder = aFolderPath + ":" + app.activeDocument.name.match (/(.*)-.) [ ^\.] + $/) [1] + ":" + myFname;
}
Alert (aNewFolder);

I hope this helps.

Kasyan

Tags: InDesign

Similar Questions

  • The video file can be published to the specified location. Check that the publishing location is still available, that there is enough free space on the disk, and then republish the movie again.

    It happened once before, but it somehow went away after I restarted my laptop. I restarted my laptop, this time, but it has not worked.

    ~*~

    OK, so I just finished put a video together. It consists of a Hypercam 2 record (which means it's a .avi file), a PNG image, text and a song (which is a WMA file).

    ~*~

    I save the file, and then click Publish Movie. Everything goes well until the last step where the video is actually published. The window made a break for a while before you receive the following message;

    ~*~

    "Cannot complete the movie publish .

    The video file cannot be published to the specified location. "Check that the publishing location is still available, that there is enough free space on the disk and then republish the movie again."

    ~*~

    I know there are a lot of free space on the drive on my laptop (it's an Inspiron 1520), and that there is nothing wrong with any of my files. I tried to change places without result. It simply doesn't get it. It would be a great help to me if someone could tell me what is the problem :)

    ~*~

    Thank you very much

    Len

    Microsoft Windows Movie Maker is not to let me publish my movies

    Hello

    I suggest you try the steps mentioned in the link given below.

    Error message when you try to publish a movie using Windows Movie Maker in Windows Vista: "cannot complete publish movie.

    http://support.Microsoft.com/kb/930435

    Additional information:

    Solve problems with publishing a movie to your computer

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-publishing-a-movie-to-your-computer

  • How to save the images and links

    Hello people so I've created a simple html page

    My question is what I have to put images in the same folder as the html page

    and if the images are deleted, they will not see the page is that correct?

    and if I download the HTML with images to my site via ftp should I update the links or not?

    What about links to one html to another in the same documents links should get updates

    When I download on my site via ftp or links will work fine without changing them?

    Thank you goodbye now.

    A html page is just code here are real or other pages on the page, just references to images and pages without images. So anyone to see your pages, they will have to be uploaded to a hosting server. If you download also the elements referenced in your HTML (images and other pages) the user will receive errors 404, file not found when they try to click on a link and you will see a broken image icon when the src attribute of the tag points to a file that has not been downloaded.

    Dreamweaver is designed to work locally, and then upload to the remote server. All the files of your site must be located in the folder your site root local and then downloaded to the root of the remote server folder (only local content is put on the remote for all paths remain the same). This remote root folder name you is given by your host and should be included in your Dreamweaver Site definition: helps Dreamweaver | GS-01: Definition of a new site. No matter if you keep all your files in the folder itself, or in sub directories that are in the folder root, although usually having at least a folder of images for all your images helps keep you organized. You can also use little or as many files in the root of your site as you want, as long as all the files and folders are uploaded to your server in the same location as your local copies, everything will work.

    In order to effectively work with DW, you really need to have a good understanding at least html and css (to a lesser extent, javascript). Take the time to familiarize yourself with the basics below...

    http://www.w3schools.com/HTML
    http://www.w3schools.com/CSS

  • Relative to the image of contentfolder path

    Hello

    In the Configurator 1.0, I was able to put a logo/image in the content folder and use the loader SWF/Image to show that image just by typing the name of images in the URL field.

    I can't get that to work with Configurator 2.0!

    Do I have to type a special path to the image?

    Kind regards Brian

    Hello

    The image must be in your YourPanelName.assets

    Check if your image is in this path:

    Photoshop / plugins / panels / yourPanelNameFolder / content / YourPanelName.assets

    In the 'location (URL)' configurator, set the name of your image (e.g. image.png)

  • Right-click on the image with link problem after upgrade to 11.0

    After the upgrade, whenever I do a right-click on an image with a link, it opens the link rather than opening a menu drop-down. Any idea on what is causing this behavior?

    OK, think about it. Extension: Tab Utilities was the origin of the problem. Uninstall completely solved the problem, disable it does not solve it.

  • Remove the border around the image with link

    I know this is really basic, but I can't find anywhere how to avoid having a purple color around a linked image border. Help please!

    Nope. Not if you want valid XHTML.

    CSS does the trick-

    an img {border: none ;}}

    * and * you don't have to add to each individual tag.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "Dan.Smith" wrote in message
    News:gn22if$I6K$1@forums. Macromedia.com...
    > border = "0".
    >
    >a
    >
    > --
    > Dan Smith > adobe community expert
    > Flash help > http://www.smithmediafusion.com/blog/?cat=11
    > twitter: http://twitter.com/dmode
    >

  • "The video file cannot be published to the specified location. Check that the publishing location is still available, that there is enough free space on the disk, and then republish the movie again"when trying to publish a movie

    Original title: VISTA HOME BASIC MOVIE MAKER

    Hello

    I wanted to connect to music and it would be pretty easy to do using this program to create and then publish and convert audio to mp3 using another program, I have, but not.  Everytime I try to publish it he says its impossible and to veryify the publishing location is still available, check it there enough space and to try once again, I have and it still does not, have any ideas people?

    Hello

    I wanted to connect to music and it would be pretty easy to do using this program to create and then publish and convert audio to mp3 using another program, I have, but not.  Everytime I try to publish it he says its impossible and to veryify the publishing location is still available, check it there enough space and to try once again, I have and it still does not, have any ideas people?

    ===================================
    I suspect that the problem is the format of the music files.
    If you can convert them. Before you import into WMA
    Movie Maker, you may be able to publish.

    Format Factory free software can convert. MP3 files
    WMA... and can also join MP3 files.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.pcfreetime.com/
    (the file you want to download is: > FFSetup260.zip
    (FWIW... installation..., you might want to
    Uncheck the box 'all' boxes on the last screen)

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • HTML Email - will be the image map links work in most e-mail clients?

    I appreviate your time

    See if that answers your question :-)

    http://www.campaignmonitor.com/blog/post/2432/do-image-maps-work-in-HTML-EMA/

    --

    Nadia

    Adobe® Expert community: Dreamweaver

    http://www.perrelink.com.au

    --------------------------------------------------------------------------

    Unique templates CSS | Tutorials | SEO articles

    http://www.DreamweaverResources.com

    --------------------------------------------------------------------------

    http://Twitter.com/nadiap

  • Select the Image after you have placed

    Hi legends,

    With the help of the forum, I developed the script below.

    My request is for jobs in math type, find the content and location of the Image fine //working

    But for another application, I need to select the image again.   need your help

    var myDoc = app.activeDocument;
    
    //to get image path
    var myFilePath = app.activeDocument.filePath;
    var myLinksPath = myFilePath + "/" + "links";
    var myArtPath = File(myLinksPath);
    var myArtFiles = myArtPath.getFiles("*.eps");
    
            
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "<<<.+?>>>";
    var _equFound = app.activeDocument.findGrep();
    
    for(e=0; e<_equFound.length; e++)
    {
        var _equ_Content = _equFound[e].contents;                         //1
        var myFinalContents = String(_equFound[e].contents).replace(/>>>/, "").replace(/<<</,"");
        
            for(j=0; j<myArtFiles.length; j++)
            {
                var myArtName = myArtFiles[j].name;
                var myReplace = myArtName.replace(/\.eps/, "")
                var myFinalImageName = String(myReplace);
    
                if(myFinalContents.indexOf(myFinalImageName) != -1)
                {
                        _equFound[e].place(File(myArtFiles[j]));     //place the image
                        
                        
                        //NEED HELP FOR THE BELOW LINE
    //~                     File(myArtFiles[j]).select();
                        app.selection[0].anchoredObjectSettings.anchorYoffset = 10;    //Error found here
                    }
             }
      }
    

    Concerning

    Siraj

    Try this,

    //to get image path
    var myFilePath = app.activeDocument.filePath;
    var myLinksPath = myFilePath + "/" + "links";
    var myArtPath = File(myLinksPath);
    var myArtFiles = myArtPath.getFiles("*.eps");
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "<<<.+?>>>";
    var _equFound = app.activeDocument.findGrep();  
    
    for(e=0; e<_equFound.length; e++)
    {
        var _equ_Content = _equFound[e].contents;                         //1
        var myFinalContents = String(_equFound[e].contents).replace(/>>>/, "").replace(/<<
    

    Vandy

  • How to change the location of the images without disrupting the Web site?

    I liked from the start using dreamweaver, but now I kind of hate. So I am currently working on a website for a school project and my teacher wants the root folder to be neat, so I tried to make it tidy by sorting all the images that I used in my root folder in a subfolder, BUT makes each image on my website disappear, I thought dreamweaver would detect and immediately search the images again as would any other software for example, as Sony Vegas Pro, but it didn't and I am disappointed . And I thought I should just get the images manually, but guess what? IT GOES BACK TO ITS ORIGINAL FORMAT! Thanks to dreamweaver, now I have to waste another hour of reformatting exactly the same as before.

    I hope someone here could help me with this difficult situation, thank you.

    If you work in a Local Site folder defined in DW, you can create folders and move files to these folders in the files of DW (F8) Panel.  Intuitively, DW will ask you if you want to update the links.  Press YES.

    If you did all of this outside the DW or you do not have a Site defined, you're stuck with bad links.  You will need to search and replace (Ctrl + F) to set up your paths to link there where they should be.

    Nancy O.

  • See all THE files that links to a file?

    I wonder if it is possible to choose a file (say "test_photo.jpg" image) and ALL the other files that the image is linked to see. If ideally I would choose "test_photo.jpg" and somewhere, he would show me that "test_photo.jpg" is used as a link 'brochure_layout.indd', 'business_card.ai' and 'postcard.indd'.

    This could be in Adobe Bridge, in the meta data in another program, anything really. I just want to know if this information is stored somewhere on the computer?

    I know that the bridge can select an InDesign file & tell you what are the links; but it's not the information I'm looking for; again, it is more for the image files to see ALL the different files that link to him.

    Hope someone has an idea if it exists.

    Thank you!

    TIA

    N °

  • BBM HELP! BBM ver.10.13.6.9 trouble on save the image became multiple

    My blackberry Z10. After you download bbm version 10.13.6.9 I had when I was download the bbm group photo. And im save the picture in the file manager for this unit.
    The problem is when I download the first picture normally, but when I save second photo, that he became double/twin, and also on the third photo is multiple (see photo 3) and much more.
    Some body having problems like me, or just me?
    Please may someone help.

    Your last sentence, the problem, I understand. The preceding sentences on what you're doing, I can't follow.

    Here's what I'd do, step by step...

    1. in BBM, press twice on the image in the chat (this opens another screen with partial view of the image, with the comments below)

    2. tap the image again (this opens another screen with just the full image)

    3. tap on the bottom right icon and select Save as (this opens the screen to navigate to the location of the folder to save the file)

    4. save the file

    So, what do you do? If not, what do you do, step by step?

    For example, to display the file in the folder...

    1. open the file manager app files

    2. navigate to the folder containing the image

    3. Select the file to open

    Then, follow these steps. You see two files of the same image? Exacly same file name, or are the names of different files? You can post a screenshot?

  • How to find specific images by the number or the name of the image?

    I recorded some insights on my desktop and decided to get some of them. I went looking for them by the number of image (i.e., 18095749, etc.) and there seems to be no way to search for images, if you already know the name/number. How is it possible without going through all the images again looking for ones I want? Thank you.

    Search by image number is the best way. A very common mistake is that you have the correct image type unchecked in your search. Remember that all four types of images or at least not included three videos are checked.

  • Copy and paste the image IE to Illustrator

    Dear users of Illustrator,

    I need to copy and paste images from IE10 or IE11 (Internet Explorer) for Illustrator (CS6, CC).

    I right click image, choose "copy" in Internet Explorer

    now I can paste into mspaint, word, photoshop, etc. It works very well...

    but when I try to paste the image into Illustrator, it sticks instead of the image url link.

    I know that this problem comes with IE10. When I go down to IE9, it started working fine.

    Any suggestion?

    Kind regards

    Jarda

    Jarda,

    Try another browser, but you can run into other issues if you succeed, as you can see from this recent thread:

    How can I paste transparent PNG

  • What happened to the ability to link to external sites in Muse v7.2?

    This video http://TV.Adobe.com/watch/learn-Muse/creating-a-hyperlink-in-Muse/ is a feature that is no longer available in Muse. At the 35-second mark, you go tell him the "hyperlink field in the top of the screen control panel"

    Guess what? It does not exist in v7.2

    There is no possibility of linking anything, text or graphics, to an external site in Muse v7.2.

    In the event of a major failure.

    Hello

    You must select any element on the page into a hyperlink, you can see the hyperlink option in the Panel.

    In the video, you mentioned, presenter has selected an image into a hyperlink under "Upcoming events" and then used the hyperlink for the image Panel linking to the site.

    Thank you

    Sanjit

Maybe you are looking for

  • Any program of MS Notepad Apple out there for Mac?

    Currently, whenever I need to write an HTML script, I use Microsoft Notepad program via my Virtual Machine to VMWare Fusion. Microsoft has a Mac version of Notepad available for download, directly from its Web site?  It would be the DMG file. Please

  • How can ad criminal harassment - I get rid of a certain spot carrier that adblockplus is not blocking?

    I saw that a carrier, which is called just "VCR", send me ad after announced it after the announcement after announcement AFTER communications... ad nauseam. I downloaded adblockplus to get rid of the stupid thing as he continues to be pop up windows

  • GarageBand compatibility with El Capitan

    I have the Version OS x El Capitan 10.11.3 installed on my computer.   GarageBand (Version 4.1.2) only opens for a new project, but I can hear songs composed before the upgrade of the El Capitan.  My questions: will the 10.1 Garageband update replace

  • Fuze causes problems with the new Gigabyte mb

    I know this may sound weird, but with assistance from others and a lot of time to put into it, I found that the "rocket" poses problem with my new motherboard Gigabyte EP45-UD3R. I was getting problems strange behaviors and reboot, flaky stuff.  Once

  • Aurora R5

    Hello, I just ordered a dawn R5 and you already have a SSD id like to install, I read online that it does not come with any extra wire for it. I was wondering if anyone knew which ones I'd need, will it take a power one, and sata III and who. Also th