Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • in reply to: Get Selected Table Rows With ExtendScript? #115774
    Kal Starkis
    Member

    No worries. Yep, I agree, it’s totally confusing that it would report the selection as a Cell (rather than a Cells collection). If you look at app.selection[0].contents, you’ll see that the contents of ALL selected cells are there (in an array) so… go figure. Anyway, Adobe API mysteries aside, I’m glad you got it working!

    in reply to: Get Selected Table Rows With ExtendScript? #115770
    Kal Starkis
    Member

    Hi Jeremy

    How about:
    app.selection[0].rows.everyItem().getElements();

    This should give you all your selected rows in an array, which you can then iterate through as needed.

    Cheers
    Kal

    in reply to: NEED HELP: Adding Suffix To Character String #113462
    Kal Starkis
    Member

    Ah, I guess we made different assumptions Peter. I thought there might be other text frames that Alex didn’t want the suffix appended to.

    Well Alex, between our suggestions you should be able to find something that fits the bill. :-)

    in reply to: NEED HELP: Adding Suffix To Character String #113450
    Kal Starkis
    Member

    Hi Alex. Assuming the code (1B18244 in your example) follows a set pattern, you can use a simple GREP pattern to find it and add the suffix. It would look something like this:

    Find what:
    \d[A-Z]\d{5}

    Change to:
    $0-X

    This finds a single digit (\d), followed by any capital letter ([A-Z]), followed by exactly 5 digits (\d{5}). It then takes the found string ($0) and adds the suffix (-X).

    Possible alternative method… In your original question, you mentioned a character style. If every string you’re searching for has the same character style applied, I’d have thought you could also use this to find the string. This seems to work for your example (which has only 7 characters), but when I tried this with longer strings I got unpredictable results. The found string ($0) only grabbed the first part of each string, and the rest got chopped off. I have no idea why it works this way. Perhaps a bug? Or maybe someone else understands what’s going on here.

    in reply to: Convert URL to Hyperlinks (Shared Destination) #112877
    Kal Starkis
    Member

    Hi Melinda

    I know it’s about 3 years since you asked for a script, but I stumbled across your post when I was looking for the exact same thing… a script that would produce non-shared destinations. I couldn’t find one that I liked, so I decided to roll my own! It turned into a much bigger effort than I ever intended in the beginning, so I turned it into a commercial script (with a free demo version) that I’m just now launching. If you’re still interested, you can check it out at https://inkwire.app/hyperlinker/

    Cheers :-)
    Kal

    Kal Starkis
    Member

    I had a similar issue, where a photo was creeping past the right edge of its frame in the exported PDF. For me, it only happened when all of these factors were combined:

    1. The edge of the photo had zero (or close to zero) X offset (i.e. the left edge of photo and frame were aligned)

    2. The exported PDF included crop and print marks

    3. 'Crop Image Data to Frames' was checked.

    I only figured out the last one after stumbling onto this thread via a Goodle search. Unchecking 'Crop Image Data to Frames' was the simplest solution.

Viewing 6 posts - 16 through 21 (of 21 total)