CS, CS2 & CS3 place problem

Hi,
I was just wondering if someone could help me with the following problem:
All l'm doing is placing a text file into a text frame - sounds easy - test code below:
======
set boxContent to "HDPropane:textfile.txt"
tell application "Adobe InDesign CS2"
    activate
    set MyDocument to active document
    try
        set myframe to (text frame 1 of MyDocument whose label is "testbox")
        «event K2  plac» (boxContent) with «class rtfo» without «class imot» given «class insh»:myframe
    on error emg
        display dialog emg
    end try
end tell
========
This works OK and will overwrite the contents each time... the problem is when you link the text frame to another text frame.... it still works fine if you run the script without having any contents in your text frames but as soon as you have some contents you get an error 'import failed'  I get the same problem in CS, CS2 & CS3
I've even tried after the 'set myframe' adding set myframe contents to "" - adding this line was a little hit and miss  sometimes it worked sometimes l got the same import failed message.
Regards, Gary.

Change this:
        set myframe to (text frame 1 of MyDocument whose label is "testbox")
        «event K2  plac» (boxContent) with «class rtfo» without «class imot» given «class insh»:myframe
to something like this:
        set myframe to (text frame 1 of MyDocument whose label is "testbox")
        set contents of parent story of myFrame to ""
        place file boxContent on myframe without showing options
Shane Stanley <[email protected]>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

Similar Messages

  • Problem batch processing in CS2, CS3 and CS4e

    I have all the above named programs and have tried unsuccessfully to get the batch process to work.  I currently run it in CS with no problems. We want to upgrade to CS5e and actually be able to use it to process our web gifs without constantly going back to the old version.
    I have an action set up with the following steps:
    Start Record
    Open File
    Save for Web - Set Width to 150 pixels - Apply - Save (I select a folder called 150)
    I repeat process for a 300 pixel image.
    Close the file
    Stop record.
    Go to batch process:
    Choose Action
    Select Source Folder
    Override Action "Open" Command is checked
    Choose Destination Folder (150 from above)
    I select OK.
    This runs fine in PS CS and no matter how many files I have in the source I end of with the same number in both the 150 and 300 folder I have created, named correctly and in the correct 150 or 300 pixel width I need as gif files.
    I repeat the same procedure in CS2, CS3 or CS4e and all I get is a folder with one image in it when done.  the batch runs and you can see it opening files but it just constantly overwrites the original file.
    I have tried to check other boxes such as the Override Action Save As Command and other things I have found on these forums but nothing is working.
    I even called Adobe and was on the phone for 99 minutes and let them view my desktop while I ran the procedure in both PS CS and PS CS4e and they were stumped.  I was told they would pass it on to supervisors and someone would call me back.  I called back after a week since I had not heard from anyone and was told my call was recorded as a mis-dircted call and they had no record.
    If someone could please help I would really appreciate it.  I have spent the last three evenings combing websites and watching videos to no avail.
    Thanks in advance.

    Thanks, but I have checked all those and am using the same settings from program to program without success.  It always work
    s in PS CS.

  • Manage multiple versions(ID CS,CS2,CS3,CS4) of INDD files Indesign proxy for PC

    Dear scripters,
    I have multiple version of ID installed in my system. I have ID CS,CS2,CS3 and CS4. While I am opening (double click) the ID CS file, automatically the file opening in CS4. For solving this problem I have searched in the forums I found there is a program called INDESIGN PROXY for MAC OSX. It manages the problems well.
    Now I am in the process of developing the application same like that for windows using VB. Here is my observation about Indesign proxy.
    1. While user double clicks the Indesign file the argument is not passing to the Indesign.exe, but the argument passes to the Indesign proxy. Something like this
    "C:\Program Files\Adobe\Adobe InDesign CS4\InDesign.exe" "%1"
    to this
    "C:\Program Files\IDproxy\proxy.exe" "%1"
    2. The proxy exe lists all the version of IDs in a dialog box. If user selects CS2, the proxy exe passes the command argument something like this
    "C:\Program Files\Adobe\Adobe InDesign CS2\InDesign.exe" "%1"
    3. Now the file will open in correct version.
    I am comfort with VB forums and coding but I am struck getting the file path while user double click's the file. I short need to get the file path of "%1" argument.
    I think I am detailed.
    Kindly advice me how can I proceed more?
    Thanks
    regards
    a r u l
    vpublish.net

    I don't think it's a mistake.
    "InDesign CS4 (3.0)"
    means: this is the OM for InDesign 3.0 (i.e., InDesign CS) that is contained in InDesign CS4.
    Wait -- do you mean there might be a difference between "the OM for InDesign 4.0 (i.e., InDesign CS2) that is contained in InDesign CS4" and, say, "OM for InDesign 4.0 (i.e., InDesign CS2) that is contained in InDesign CS5" ?
    Why on earth would anyone need that? I imagine it's not because even with versioning the 'older' scripts may not behave the same -- there must be dozens of mails about versioning not working ... I mean, if Adobe knows what causes older scripts to stop working (because, if I understand you correctly, they retroactively change it in the documentation for older versions), wouldn't it be yet easier to not cause those changes?

  • Need to Uninstall CS, CS2, CS3, CS4 - Uninstall Tool Missing

    We've been with Adobe for a long time.
    We're upgrading computers and Mac OS on all to Mavericks.
    Would like to clean up in the process.
    Would like to thoroughly UNINSTALL all CS, CS2, CS3, and CS4 products on all computers.
    We are currently using CS5.  And, after installing Mavericks, will install CS6 Design Standard.
    Most threads point to using the UNINSTALL TOOL ... but no one seems to have a link to where to get it?
    It is not in the folders that everyone says it should be.  I do not have it.
    I hesitate to just DRAG the folders to the trash.  I'd prefer a tool that will UNINSTALL proper plists, etc. ... not just trash the AP folder.
    Anyone?

    I have already been there.
    1.  In my Adobe Installers folder, there are only alias' folders for "Add or Remove Adobe Creative Suite 3 Design Premium", for "Adobe Creative Suite 4 Design Premium", for "Adobe Creative Suite 5 Design Premium" and for "Adobe ExtendScript Toolkit 2.1".  When I "Show Original" and go there and try to OPEN the folder to run the uninstaller ... nothing opens.  When I search for "Adobe Uninstaller", nothing is found.
    2. I have downloaded and run the Cleaner Tool for CS3 and 4 ... but it was very very fast (didn't see a progress bar while it was working as expected) and CS3 and 4 are still in my applications folder.  There was a message on one of them something about "support file missing".
    So, this doesn't seem to have worked ... again.
    In our office, we used to "trickle down" computers.  The person with the oldest computer gets the new on and his goes to someone else.  The problem with this has been that the person giving away the computer has been required to "clean it up" before passing it on and people haven't known HOW to do this.  Thus, the missing uninstallers, etc.
    So ... I want to delete (thoroughly) CS, CS2, CS3 and CS4, including Bridge, Device Central, Extension Manager, Drive, Fireworks, Flash, Media Encoder, Stock Photos, Version Cue, SupportAdvisor ap.
    Can I simply "drag to trash"?  I suspect not.  But unistallers don't seem to be present and cleaner tool doesn't seem to work.
    Are the instructions for "manual" removal of all files?
    Thank you.

  • Identify the Application Version Cs/Cs2/Cs3???

    Hi All,
    I need to identify the Application Version [Cs/Cs2/Cs3].
    Is there any way to identify using javascript???
    Regards,
    Ramkumar .P

    It's not the endianness inside single bytes (thank the Silicon Gods for that!).[*] It's when you are working with values that require more than a single byte -- i.e., everything above 255 (which is the highest value that can be expressed -- normally -- with a single byte).
    Everyone can see that 4589 is less than 9341, even though it has the same number of digits, because, well, the first one's rightmost digit is '9' and the second one's is '1' but that doesn't make sense, because it's the leftmost digit that counts most.
    You're thinking, "Sure, but what about that endianness thingy?"
    It's the same thing. Suppose you get two 2-byte values:
    (a) 123 and 85
    (b) 86 and 100
    Which 2-byte value is the largest? Well, obviously it's the first one, as the most significant part (123) is clearly larger than that of the other (86). Now suppose you have to design a computer chip, and you have to decide in which order to store 2-byte values. It's quite obvious to you, me, and, for example, Motorola engineers, how you would do that: most significant byte first, then least significant.
    Unfortunately, the designers of the most prevalent microchip to date, Intel, decided to do it ... the other way around. (Insert appropriate smiley/sad face/horror here). For some reason, they reckoned it useful to store the least significant part first. Remember, back in "the day" when this was decided, using two bytes to store a number was ... well, how golly big numbers do you computer techies want to process!? Two bytes, that's up in the thousands! Imagine!
    So I imagine there must have been a highly technical reason for it.
    The term "endianness", by the way, comes from Gulliver's Travels -- which, I'm sure, most of you read. Remember the Civil Wars on which end to start eating an egg?
    Applying this to the (a) and (b) numbers, when you are asked "what is the bigger two-byte number?", then you ask "Is it Most Significant Byte first, or Least Significant first?" Is it the former, then it's (a); for the latter, it's (b).
    [*] Above-criticized engineers had no problem in deciding that in
      10010001
    the highest bit value (128) is always on the left, and the lowest (1) is always on the right.

  • CS3 reinstall problem - asking for uninstalled CS4 beta

    I have a PowerBook G4 with 1.5 Gb RAM running Mac OS 10.4.11. I have the CS3 Suite installed and last year downloaded a beta copy of Fireworks CS4. After using it a bit, I uninstalled Fireworks CS4 with the Adobe uninstaller.
    I recently had a problem with Bridge and decided to uninstall and reinstall the software. I uninstalled Photoshop CS3 (in order to uninstall Bridge) and when I began to reinstall Photoshop, the installer ask me to insert the Fireworks CS4 disk! Since I don't have that disk, I hit cancel and the install terminated (I tried this multiple times and rebooted each time)
    I then downloaded and ran Adobe's CS4 Cleanup app. It found NO CS4 apps to clean up.
    Any suggestions would be appreciated.
    Mark

    Thanks Neil and Buko for your input. Here's where things stand now:
    1) I uninstalled FW CS4
    2) I uninstalled CS3
    3) I ran Cleanup Script
    4) I repaired permissions using Disk First Aid
    5) I reinstalled CS3
    The problems with Bridge remained (sluggish, won't display icons properly, won't show a preview image, won't operate the folder list, etc.).
    So I called Adobe support. Unfortunately, because I am having problems installing CS3 and NOT CS4, support is NOT FREE. The rep was helpful though -- she pointed me to document number 331594 (Diagnosing Bridge problems) and told me to start there. I followed EVERY step . . . disable start-up scripts, reverted to original preferences, cleaned up the cache, disabled the folder windows, and the problems remain.
    Guess I'll have to pay . . .
    Lesson learned: don't trial Adobe software. That's when my problems began.

  • I bought the photoshop cs2 cs3 cs5 and lightroom and lightroom 4. i can't install on may new macbookpro 13inch?

    i bought the photoshop cs2 cs3 cs5 and lightroom and lightroom 4. i can't install on may new macbookpro 13inch?

    On which operating system are you trying to install these Adobe apps?
    Please specify the operating system name and version.
    If you have purchased new Macbook Pro, then you should have atleast Mac OSX 10.9 or later. However, i doubt you will be able to install most of these apps on it as they are pretty old apps except CS5 & Lr4.
    Still you can give it a shot and check.
    What happens when you try to install them?
    Do you get any error message? An error screenshot or full text of the error, should be helpful.
    ~ Arpit

  • CS2/CS3/CS4: Cannot get file path in Unicode of the current document on Windows

    Hi All,
    In my automation plugin I need to have full absolute path of the opened document with any possible non-English letters. Using SDK examples Listener and Getter that come with Photoshop SDK the full absolute path which I obtain is in the default ANSI code page (CP_ACP) and I can convert it to Unicode using MultiByteToWideChar() API. However this works well when I have corresponding to document name language set in the "Control Panel -> Regional and Language Options -> Advanced -> Select a language to match the language version of the non-Unicode programs you want to use." For example if name of the document has Russian letters and chosen language in "Regional and Language Options" is also Russian the described conversion works well. If I change "Regional and Language Options" to English for example, full path returned by Photoshop SDK API (AliasToFullPath in PIUFile.cpp) for the document with Russian letters will contain "????????.psd" symbols.
    So I need to have an ability to get absolute file path in Unicode. Is it possible in Photoshop CS2/CS3/CS4 for Windows? I have searched forum and SDK but could not find info on it.
    Is it possible to have native HANDLE of the opened file to get file info using Windows API?
    Please advice.
    Below given slightly modified code from Photoshop CS3 which I use to get absolute file pat of the opened document.
    Thanks and regards,
    Sergey
    std::string outFilePath;
    int32 theID = 0;
    SPErr error = kSPNoError;
    error = PIUGetInfo(classDocument, keyDocumentID, &theID, NULL);
    if (error == kSPNoError)
    Handle theFileHandle = NULL;
    error = PIUGetInfoByID(theID, classDocument, keyFileReference, &theFileHandle, NULL);
    if (error == kSPNoError)
    int32 length = sPSHandle->GetSize(theFileHandle);
    Boolean oldLock = FALSE;
    Ptr pointer = NULL;
    sPSHandle->SetLock(theFileHandle, true, &pointer, &oldLock);
    if (pointer != NULL)
    outFilePath = (char*)pointer;
    sPSHandle->SetLock(theFileHandle, oldLock, &pointer, &oldLock);

    Hi All,
    Does anybody know, whether it is possible to get Unicode file path of the current document in Photoshop via Photoshop SDK API or without them?
    Thanks,
    Serhiy

  • HTML Help window placement problem

    Hi -
    We just upgraded to R7 from X5. It seems that now, for our
    newly generated Help, the HTML Help viewer will not right-align.
    Even if I specify the maximum width in the Window Properties
    dialog, when generated, the window only extends about 4/5 of the
    available screen width and is LEFT aligned.
    Our screens are 1024 x 768 and RoboHelp seems to understand
    this because if I max out the window size in the Window Properties
    dialog, the height shown = 767 and width = 1019.
    Is anyone else experiencing this placement problem?
    TIA

    Hi, Jack,
    > ... the HTML Help window properties dialog only accepts
    hard coordinates (i.e. pixels).
    > ...
    > Unless someone knows differently, for HTML Help,
    apparently you can't get the HTML
    > Help viewer to appear right-aligned for all
    screen/display configurations
    Yes, this is correct on both counts. Because of limitations
    in Microsoft's design of HTML Help, you cannot specify the
    dimensions of the help window in anything other than pixels, and
    you can only set the initial position of the window relative to the
    left and top edges of the screen.
    On the other hand, if you are calling the help file
    programmatically from an application, there may be some scope for
    controlling the position of the help window by using standard
    Windows functions. This article provides a small amount of extra
    information:
    http://helpware.net/FAR/far_faq.htm#control
    Pete

  • Premiere CS3 Reinstall Problem

    I am currently running Windows XP Pro on a Matrox Axio system in which the CS3 Creative Suite was already installed for me upon purchase. As of late I've had problems with Quicktime (Premiere and After Effects no longer see it as a compatible format) and I was hoping that as a solution, I could reinstall Premiere and After Effects from the original discs.
    This theory might work but when I get the disc to the Progress portion of the reinstall, it asks me to "insert CS3 Production Premium Disc 1 into drive \\prod\Adobeapps". I don't claim to be an expert but I just cannot figure out what the installer is asking me to do and I'm very frustrated. I tried a multitude of Quicktime-related fixes that didn't yield results and I was really hoping to try this particular fix to see if it works. Does anyone have experience with this error? If so, what was your method of bypassing it?
    If this helps in any way, Quicktime stopped working with my system when one day Premiere couldn't get past the CompilerAIFF.prm during the initial program load. I went back a few hours on a system restore and when I got Premiere up and running again, Quicktime was no longer a viable option. I've tried totally reinstalling stand alone Quicktime (and I did use the Windows Installer Clean Up to remove iTunes and Quicktime before the reinstall) and I've tried repairing Quicktime in the Control Panel, and helped. In fact, attempting to repair Quicktime led to a "fatal error on install" and put me back where Premiere got hung up on the CompilerAIFF.prm again.
    Any help I could get would be much appreciated.

    Thanks Neil and Buko for your input. Here's where things stand now:
    1) I uninstalled FW CS4
    2) I uninstalled CS3
    3) I ran Cleanup Script
    4) I repaired permissions using Disk First Aid
    5) I reinstalled CS3
    The problems with Bridge remained (sluggish, won't display icons properly, won't show a preview image, won't operate the folder list, etc.).
    So I called Adobe support. Unfortunately, because I am having problems installing CS3 and NOT CS4, support is NOT FREE. The rep was helpful though -- she pointed me to document number 331594 (Diagnosing Bridge problems) and told me to start there. I followed EVERY step . . . disable start-up scripts, reverted to original preferences, cleaned up the cache, disabled the folder windows, and the problems remain.
    Guess I'll have to pay . . .
    Lesson learned: don't trial Adobe software. That's when my problems began.

  • All copies illustrator crash, cs2 cs3 cs4 Leopard 10.5.8 powermac 1.8 dual

    I crashes every time i open it. it suddenly started happening. i could get just past  the opening pane at first allowing me to choose what kind of document to open print rgb etc, the it stopped doing that. i get the opening pane the it crashes, it aslo happens in past copies cs2 cs3 cs4 non of my illustrator copies will open

    It could be an issue with your font caches.  Go get fontnuke and try deleting all your system and application font caches.
    It doesn't sound like a preference issue if it's affecting all the other versions.  Do you have the suite installed?  Is Photoshop working properly?

  • Viewing large Illustrator CS3 files problem

    I use bridge to browse through previous work in created in Illustrator CS3.
    Problem - when viewing these files in Bridge some files (whatever their dimensions) show as large thumbnails and others (with the same AI dimensions) are small and do not seem to stretch in Bridge?
    Can anyone explain how to stretch the thumbnail in Bridge.

    Sorted - I need to save the CS3 file with 'create pdf compatible file' checked in the options, and it then opens as a large thumbnail in bridge.

  • Faces and Places Problem

    Hello,
    maybe someone could help me (apple telephone support could not):
    Faces problem:
    I made a smart-album to sort out all the "unnamed faces". But 92 pictures have a strange behaviour. They are tagged as "unnamed" although there is no rectangle in the picture to tag. I've allready used the repair-function and deleted all cache files (telephone support advised me to do both).
    Places problem:
    another strange thing is places. I've got a few pictures which have more than one "place" tagged. I don't know how this could happen. If you take a look at the screenshot you can see that I made a smart-album with 4 different places (PLACE - IS - XY - AND - PLACE - IS .....) to demonstrate that kind of behaviour

    I've noticed that photos I had faces from iPhoto 09 are not syncing (I only had a few).
    In the manual list, the faces are not an option to select them. Tried removing and resyncing library and no avail.

  • [CS2/CS3 JS] Merged Cell Problem...

    Hi,
    Below is a part of my script that has been giving me a problem with merged cells:
    if (myTable.cells.item(h).bottomEdgeStrokeWeight > 0.5) {
    myTable.cells.item(h).bottomEdgeStrokeWeight = 2;
    myTable.cells.item(h).bottomEdgeStrokeType = "Thick - Thick";}
    Everytime the script passes on a merged cell, it quits and it only do changes on the first cell of the merged cells. Once I run my script again, it quits with error because the first cell of the merged cells now has a different stroke weight than the rest of the merged cells.
    Is there a way to apply stroke on merged cells? And what is the parameter for UNMERGE? Thanks.

    Hi Joaquin,
    Here are a few examples – hope it helps.
    Kasyan
    // lets assume myTable has 4 rows and 4 columns
    myTable = app.activeDocument.stories[0].tables[0];
    myStartCell = myTable.cells.item("0:0"); // cell in the 1st column and 1st row
    myEndCell = myTable.cells.item("0:3");  // cell in the 1st column and 4th row
    myStartCell.merge(myEndCell);
    // now merged cells have become the cell in the 1st column and 1st row
    myMergedCell = myTable.cells.item("0:0");
    myMergedCell.unmerge();
    // merge/unmerge the last row
    myTable.cells.item("0:3").merge(myTable.rows.item(-1));
    myTable.cells.item("0:3").unmerge();
    // merge/unmerge the last column
    myTable.columns.item(-1).cells.item(0).merge(myTable.columns.item(-1).cells.item(-1));
    myTable.columns.item(-1).cells.item(0).unmerge();

  • CS3 to CS2 text flow problem

    I have saved a IND 3 doc as an INX file but when I open it in IND 2 bits of the text have enlarged causing overflow.
    Any idea why?
    (tried opening it in IND 3 again and it's fine)
    thanks
    Pete

    There's no way to prevent text reflow moving between versions. Those of us at the InDesign Conference learned this week from the engineers that there can be subtle changes in the text composer or in the dictionaries supplied. (Or there could be a bug in the way CS3 saved INX.)
    Moral: Stay in the same version if you possibly can.

Maybe you are looking for

  • Windows Vista won't install

    Hey i just got a copy of windows vista but it won't install. i tried to install it using bootcamp but it asks me to start installing on a existing windows. i don't have any windows installed on my mac book. Do i have to install windows xp before inst

  • ORF images are slightly zoomed in

    Hi, I am trying the latest version of Lightroom 5 and I have imported a number of .ORF images from Olympus OM-D E-M5 camera. Everything was fine, but when I started comparing exported JPEG images with original previews of ORF in Windows, as well as w

  • Calling a WD method from Adobe Interactive Form JavaScript

    Hi all, I would like to save the PDF file (into KM) defined by the binary Context Attribute "PdfSource",  when I run a Adobe Interactive Form inside a WD application. And this must be done automaticaly at starting. The origin of my problem is that "P

  • Building a FTP client

    hi all, i want to build an ftp client using swing. where should i start. i have the ftp rfc with me but that is not helping much, thanx in advance, parminder

  • InD 6 file color different in Acrobat

    I set my color profile in Bridge so all programs in CS6 sync. Images I build in Pshop (RGB 6x9@300 res) retain color when imported into InD. If I export the InD file as jpg, image also retains color. But when I export same InD file as PDF, the color