JS CS3 copy, paste and transform

I have a script that allows the user to select objects on a page (in this case text frames) and create a new page user defined and then paste the selection on the page and make it fit the page size.
I'm having a slight problem where the text frames in the group are not showing the text (get text overflow) after the resize. If I comment out the myGroup.geometricBounds = [0,0,38,38]; line in the script below and manually resize the group to the document height and width (38,38) the text frames in the group are all ok.
var myNewGroup = new Array;
for (i=app.selection.length-1; i>=0; i--) {
myNewGroup.push (app.selection[i]);
var myGroup = app.activeDocument.groups.add(myNewGroup);
myGroup.move(Array(0,0) )
myGroup.geometricBounds = [0,0,38,38];
If anyone has any suggetions it would be greatly appreciated.
John.

This seems to be working. I went with the transform() in the end. If anyone has a better way please let  me know.
var myNewGroup = new Array;
     //make group
for (i=app.selection.length-1; i>=0; i--) {
    myNewGroup.push (app.selection[i]);
  var myGroup = app.activeDocument.groups.add(myNewGroup);
  myGroup.move(Array(0,0) )
       //get size of group
  var mySelSize = myGroup.geometricBounds;
         //get size of document
    var myDocHSize = app.activeDocument.documentPreferences.pageHeight;
    var myDocWSize = app.activeDocument.documentPreferences.pageWidth;
         //get scale value
    var myScalH = myDocHSize/mySelSize[2];
    var myScalW = myDocWSize/mySelSize[3];
         //apply transform scale
    var myScaleMatrix = app.transformationMatrices.add({horizontalScaleFactor:myScalW, verticalScaleFactor:myScalH});
    myGroup.transform(CoordinateSpaces.pasteboardCoordinates,AnchorPoint.topLeftAnchor, myScaleMatrix);

Similar Messages

  • Indesign CS3 - copy paste and export problem

    When I try to copy text in Indesign CS3 and paste it in Word 2007 - or even in notepad - nothing happens. Pasting works fine when I stay in Indesign, but not when I try to paste it in another application.
    So I tried to export text to RTF (selecting text, export to rtf, give a name als save), but no file was created.
    Pasting text from another app. into Indesign just works fine.
    Am I doing something wrong, or is this a bug?
    Thanks for any advise.
    (Windows Vista, Dell 9200, 4 MB memory)
    L.L.

    I solve this problem in windows XP using the Phaedra's first optimistic tip and worked fine to me.
    When I tested the IDcs3 in another profile it was clear that the problem is not in the program, but in permissions or another detail in the user config.
    To simplifly my life, I create a new user account "MIGUEL2" in Windows as admin powers. With this new account I "reboot" my oldest ("MIGUEL") account to user mode. Restarted windows and, with "MIGUEL2" I reset the privileges to "MIGUEL" to admin user.
    Now I can export txt and rtf files from IDcs3. ;)
    You can skip the last step and work only with the new account or just work as user, not admin...
    Really weird. Why this happened? I don't know... but I'm happy that was too simple to solve...
    Best wishes
    Miguel Leite

  • How do I reinstall the edit button on my Firefox 4 toolbar; cut, copy, paste, and print?

    I recently have been having problems with my Firefox 4 tool bars. Right now, the Edit icons are no longer on the tool bar, specifically Cut, Copy, Paste, and Print. If there were other Edit icons, they too are gone. All the other icons have remained.
    I would appreciate it if you could advise me how to reinstall those specific icons.
    Also recently, ALL my tool bars, and task and status bar disappeared. This was only in Firefox 4.0; IE 8 was not affected. Clicking F11 did not work. I could not function without them. Then, a short time later, they "automatically" reappeared. I have not idea of why the disappeared or reappeared.
    Thank you for any help you can provide.
    Sanford A. Berman

    You can find the Copy, Paste, and Cut buttons next to Firefox > Edit (and in its sub menu) and in the regular Edit menu on the menu bar (press F10 if the menu bar is hidden).
    The buttons next to Firefox > Edit are enabled if there is something to do with them, just like with the toolbar buttons.
    You can find the Copy, Paste, and Cut toolbar buttons in the toolbar palette in the Customize window and drag them on a toolbar.
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Copy/paste and drag/drop not working in Mt. Lion

    After two weeks of searching, I can not find the hangup which is causing my iMac 27" 10.8 to stop copy/paste and drag/drop following successfully doing the same shortly after startup. In Safe Mode, it doesn't happen, so I'm wondering how to track down this problem (extension?). I have to restart in order to get it functioning again after a short time of working. There has to be some kind of timing, like a program installed with a time limit which probably was forgotten in Lion and then reared its ugly head in Mt. Lion. Any suggestions for tracking this puppy? Or is there a program I could buy to do so?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
    Step 2
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
    Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.
    You can then quit Terminal.

  • JList & cut/copy/paste and focus

    I have a JFrame with a typical edit menu (cut/copy/paste) and also a JList. I have hooked up the menus such that cut copy paste 'do the right thing' in regards to the current selection of the JList. However, if the JList has focus and i keyboard ctrl-x for instance, it looks like the JList is grabbing and handling the cut, as opposed to my menu code. How do I get the JList to ignore the keyboard when it has focus, or do I install my handlers in the JList somehow?

    Thanks for the response. This area really smells to me. Which I infer means i don't really understand this area, otherwise it wouldn't be so wretched.
    For instance the default cut action on a JList, doesn't seem to do anything, while the copy works correctly.
    So why would you ever use the default actions? I guess i can install my menu actions in the JList, just seems badly designed... so am i wrong?
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class MyJListFrame extends JFrame
         public static void main(String[] args)
              MyJListFrame f = new MyJListFrame();
              f.setVisible(true);
         public MyJListFrame()
              Container cp = getContentPane();
              DefaultListModel dtm = new DefaultListModel()
              {{addElement("This");addElement("is");addElement("a");addElement("test");}};
              cp.add( new JList( dtm ));
              pack();
    }

  • Office365 macbook air while copy paste and change font to tahoma forarded message remain with different fonts and size not accepting change

    office365 macbook air while copy paste and change font to tahoma forarded message remain with different fonts and size not accepting change
    mac yosemite
    office365

    Also here's the log before it happened. As you can see there is no activity from 9:48 to 10:00 am when the sound occurred.
    23/02/2014 9:48:12.792 am ntpd[52]: FREQ state ignoring -0.145411 s
    23/02/2014 9:48:15.258 am WindowServer[96]: _CGXHWCaptureWindowList: No capable active display found.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000280
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319378: AirPort_Brcm43xx::powerChange: System Sleep
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319390: wl0: powerChange: *** BONJOUR/MDNS OFFLOADS ARE NOT RUNNING.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
    23/02/2014 10:00:04.000 am bootlog[0]: BOOT_TIME 1393167604 0
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.appstore" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
    Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".

  • Copy - paste Keyframed transforms only

    Hi
    In Flash CS3 is it possible to copy a Keyframed and tweened animation of say a symbol growing larger and paste the Keyframes of the scaling transform onto a different symbol on a different layer so that this new symbol animates in the same way as the first symbol.
    When I try this with "ctrl alt c / v" the new symbol becomes the same as the old symbol and also moves to the same position too. I need to only copy the scale transform info in the Keyframes.
    Is this possible?
    Thanks for any help
    Graz

    I finally found out how to do this:
    Select frames to copy
    Right click
    Select Copy motion
    Select object to receive animation
    Right click object
    Select paste motion or Paste motion special
    The latter gives a choice of which parameters to copy over.

  • After installing Mt.Lion on my 27" iMac (2010), my copy/paste and move files would no longer function after a few minutes of use. I re-opened in Safe Mode and found everything okay, so I was told it was a bad extension. Now what do I do?

    I have tried to look for an extension like Air Print Activator, which I tried and ignored. I thought it might have some timing method that would stop my copying and pasting and moving files after a minutes ot two. So I re-installed the latest version and "uninstalled" it, hoping it would then remove an errant extension. But that didn't help. It seemed to start when I first tried out Mail and moving new emails into their mailboxes after reading. I tried to figure out how to do a Clean Install, too,  but it would not allow me to "move" the InstallESD.dmg to a USB disk, "resource busy". Everyway I turn, I'm blocked from carrying out a method of finding the culprit, short of starting from scratch -- but losing years and years of mail, files, receipts, etc. It's just too much to sacrifice. I have no idea what to do next, since I have no idea what extension is causing it or how to isolate and destroy it. Any suggestion would be much appreciated.

    You can try repairing the boot drive, Since you are running OS 10.6.8 you will need the OS DVD. Do you have it?
    Please post back if you do, and need directions on how to do the disk repair.

  • I am working in windows 7 and I am trying to enable the copy/paste and I can not find user.j file in the profile and I am not real sure how to create a file, I can create a folder .

    I am trying to copy text from a word document and paste it into my web builder and it says that firefox does not support copy/paste from clipboard. Went to your site and it tells me to open the user.j file in my profile. This file does not exist and I am not real sure how to create that file so I can paste the fix from your site into it.

    I went to that link and added to firefox add on but it still does not work. I went to the add on option button for this but it told me that my MYSIWG widget was disabled. Does this have something to do with it not working and if so how do you enable it.

  • Why can't i Cut items and paste them? I have to copy Paste and delete them?

    Why can't i cut items (ctl + x) on my Macbook air? I always have to copy item from original location to location where i want to paste and del

    Are you talking about cut/paste within an application (i.e.: Word, Textedit) or Finder? (i.e.: cut/move file to folder or external hard drive.) Finder doesn't have cut, just copy. As to why, you'd have to ask Apple.

  • Copy, Paste and Text Formatting

    If I copy text from another application, then paste it into a
    Fireworks textbox, it replaces the Fireworks formatting with the
    formatting from the previous application. I'm looking for something
    along the lines of the "paste and match style" function found in
    most Apple programs. Also, if I copy text *from* Fireworks, then
    paste it into another application, it shows up as an image, not
    text.
    Any way around these problems? (At least they're problems for
    me.)
    I've been using FW since it was originally released, and I
    don't recall these problems in previous versions. I don't have any
    earlier versions installed, however, so I can't be sure.

    cault wrote:
    > Also, if I copy text
    > *from* Fireworks, then paste it into another
    application, it shows up as an
    > image, not text.
    Open the text in the text editor (Text > Editor) and copy
    and paste it
    from there. You can also paste text into the text editor to
    remove
    formatting from other software.
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    http://www.adobe.com/communities/experts/

  • Copy Paste and dialer

    As a suggestion, if anybody who makes a difference actually reads these posts, would be to allow copy/paste functionality to work in the dialer application. This would allow us to paste phone numbers and conference codes rather than trying to remember them from our calendar/email apps to the dialer.

    Click here and fill out the form.
    (44695)

  • How can I copy, paste and edit a phone number?

    If I copy a phone number then paste it, how can I edit the pasted number?
    For example, my phone has an Irish SIM. If I am in the UK and copy a UK phone number from an email signature it will typically be in local format i.e. 0208 456 7890. I need to dial 00 44 208 456 7890. I cannot find a way to delete the zero prefix and add the country code.

    This one kills me as well - editing phone numbers in the keypad/dialer is a pretty basic function, I could never fathom why it didn't exist.  We need to be able to place a cursor, and copy/paste part-numbers!  I'm constantly trying to paste just an area code, or an extension, or insert the country code, and I should not need to create a new number in the contact directory to do it!
    Currently I do the copy/paste editing in Notes, and then paste the corrected number into the dialer - pointless and inefficient, and contrary to the Apple philosophy of making the user experience easy and seamless...

  • How can I copy, paste, and email a web site page?

    Hello.  Basic Safari question: How can I Copy, then paste, web site content from Safari, into a document (ie. Powerpoint Presentation)?  I am interested in copying / pasting so that the content in the document looks (formatted) identical to the content on the web site?
    Thanks!
    KD
    ps.  R.I.P. S.J.

    This one kills me as well - editing phone numbers in the keypad/dialer is a pretty basic function, I could never fathom why it didn't exist.  We need to be able to place a cursor, and copy/paste part-numbers!  I'm constantly trying to paste just an area code, or an extension, or insert the country code, and I should not need to create a new number in the contact directory to do it!
    Currently I do the copy/paste editing in Notes, and then paste the corrected number into the dialer - pointless and inefficient, and contrary to the Apple philosophy of making the user experience easy and seamless...

  • Copying, pasting and editing audio problem?

    hi, i have some audio tracks that i originally recorded in pro tools le
    (no plugin delay compensation if using uad's or other 3rd party plugs dont even go there by the way)
    and have exported them to logic 8 and changed the arrangment for a song.
    The problem is when i cut and paste sections of an audio track to a different part of the song, if i trim, cut, mute or pull it back it changes the part of the audio that i originally pasted it from?
    how do i stop this from happening?
    can anyone help
    thanks

    Once you've copied/pasted the new region to where you want it, select the new region and press:
    OptionCmdF
    You will then be prompted to give a new filename for the audio file. This generates a new file, which can be edited separately from the original.

Maybe you are looking for

  • How can i set up mac mail so each line starts with a capital letter?

    how can i set up mac mail so each line starts with a capital letter? 

  • How do you recover a hard drive?

    I have a MacBook Pro that is two years old. I tried to start the laptop and it hung up on the gray screen with the apple icon.  So I inserted the snow leopard install cd and I was able to start the computer and gain access the utilities. I tried the

  • Connect java with SQL Server

    Hello everybody, I have created a java program in JBuilder9 and i have connected it with Access 2003. I want to connect the program with SQLServer 2000. How can i do it? Thanks in advance!

  • How can take advantage of Windows 7 upgrade option?

    The Windows 7 Upgrade Option officially starts today that gives a free copy of W7 with Windows Vista PCs and Notebooks, and I wanted to find out how I can take advantage of this offer when buying from the Toshiba website? Thanks in advance.

  • ITunes launch failure when connecting the pod

    I'm having issues with itunes not launching (no error msg is given) when I plug in one of our two 2g nanos. It worked at one point, but now when you plug in a nano, it pops an IE window for the ipod (set to be able to use as a drive). I have repeated