Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Joe

#1
Quote from: Slappy on February 25, 2025, 10:44:59 AMAhhhhhh - AI. I tried a Chat GPT that's supposed to be for InDesign scripts and it was mangled too, in some way I couldn't determine.
So I take it none of the 3 scripts worked?
#2
If none of those works maybe someone that knows scripting can chime in and fix on of them to work.
#3
Google AI when I do a Google search for:

InDesign Script when a frame is selected (Graphic mode typically) sizes the frame to the Bleed area for that document.

When I do this search now with quotes I get this:

"InDesign Script that when a frame is selected (Graphic mode typically) sizes the frame to the Bleed area for that document"

// InDesign Script: Resize selected frame to document bleed area

function resizeFrameToBleed() {
    var doc = app.activeDocument;
    var selectedFrame = app.selection[0];

    if (selectedFrame && selectedFrame.typename == "GraphicFrame") {
        var bleed = doc.documentPrefs.pageBleed;
       
        // Set new frame dimensions based on bleed values
        selectedFrame.geometricBounds = [
            bleed.top,
            bleed.left,
            doc.pageWidth + bleed.right,
            doc.pageHeight + bleed.bottom
        ];
    } else {
        alert("Please select a graphic frame.");
    }
}

// Run the script when a graphic frame is selected
app.addEventListener("selectionChanged", resizeFrameToBleed);

When I do the search without quotes like this I get this:

InDesign Script that when a frame is selected (Graphic mode typically) sizes the frame to the Bleed area for that document

// InDesign Script: Resize selected frame to document bleed area

function resizeToBleed() {
    var doc = app.activeDocument;
    var selectedFrame = doc.selection[0];

    if (selectedFrame && selectedFrame.typename === "GraphicFrame") {
        var bleedTop = doc.documentPrefs.pageBleed[0];
        var bleedRight = doc.documentPrefs.pageBleed[1];
        var bleedBottom = doc.documentPrefs.pageBleed[2];
        var bleedLeft = doc.documentPrefs.pageBleed[3];

        // Set new frame dimensions based on bleed values
        selectedFrame.geometricBounds = [
            selectedFrame.geometricBounds[0] - bleedLeft,
            selectedFrame.geometricBounds[1] - bleedTop,
            selectedFrame.geometricBounds[2] + bleedRight,
            selectedFrame.geometricBounds[3] + bleedBottom
        ];
    } else {
        alert("Please select a graphic frame to resize to bleed area.");
    }
}

// Run the script
resizeToBleed();

Both are a bit different than the first one I posted so try these two and see if either works.
#4
OK where I found this script it also says this:

Important considerations:
Graphic frame selection:
This script only works if you have a single graphic frame selected.Bleed settings:
Make sure your document has bleed settings defined before running the script.Custom adjustments:
You can modify the script to handle specific scenarios, like checking for multiple selected frames or adjusting the behavior based on your workflow.Compatibility:
Always test the script with your current InDesign version to ensure compatibility.

Anything in there making it fail?
#5
Is that is actually 2 different scripts? Looks like the 2nd one starts with:

// Run the script when a frame is selected in Graphic mode
app.addEventListener("selectionChanged", function() {
  if (app.selection.length === 1 && app.selection[0].typename === "GraphicFrame") {
    resizeToBleed();
  }
});

Maybe try running only the top part:

// InDesign Script: Resize selected frame to document bleed area

function resizeToBleed() {
  var doc = app.activeDocument;
  var selectedFrame = app.selection[0];

  if (selectedFrame.typename === "GraphicFrame") {
    var bleed = doc.documentPrefs.pageBleed;
    selectedFrame.geometricBounds = [
      bleed.top,
      bleed.left,
      doc.pageWidth + bleed.right,
      doc.pageHeight + bleed.bottom
    ];
  } else {
    alert("Please select a graphic frame.");
  }
}

Maybe the bottom part is only for when in Graphic mode.
#6
Quote from: Slappy on February 25, 2025, 05:59:50 AMOk, that's nice! It doesn't do what I had before, but it does set all items going past the bleed to be at the bleed instead.

The much simpler one I used would just set the selected (single) item to the bounding area of the bleed box. I'll keep mesing around, should be able to get it to work eventually & I'll pot a link back if I do.

Thanks!
Is this it:

// InDesign Script: Resize selected frame to document bleed area

function resizeToBleed() {
  var doc = app.activeDocument;
  var selectedFrame = app.selection[0];

  if (selectedFrame.typename === "GraphicFrame") {
    var bleed = doc.documentPrefs.pageBleed;
    selectedFrame.geometricBounds = [
      bleed.top,
      bleed.left,
      doc.pageWidth + bleed.right,
      doc.pageHeight + bleed.bottom
    ];
  } else {
    alert("Please select a graphic frame.");
  }
}

// Run the script when a frame is selected in Graphic mode
app.addEventListener("selectionChanged", function() {
  if (app.selection.length === 1 && app.selection[0].typename === "GraphicFrame") {
    resizeToBleed();
  }
});
#7
Heidelberg / Re: Signa - reorder press sheets
February 19, 2025, 01:10:28 PM
Quote from: DCurry on February 19, 2025, 12:54:34 PMI think I found a half-solution. It seems that I can move my folding patterns from one sheet to another, but I can't (easily) reorder the sheets. So I could move sig 1 onto form 2. It will work fine, just gets a little confusing out in the press room and bindery as they are used to Form 1 being the first sig. so if I build the template with a work and turn as the first sheet, then the first sheet will always be work and turn even if I choose to put sig 2 or 3 on it.

I was hoping someone here might have had some in-depth experience with Signa, but I guess I'm the only one using it currently!

Mark Tonk is a Prinect expert and he tried to login here yesterday but must have forgot his password. He tried to reset it but the email was bounced to me because his email address under his account here is no longer valid. You may be able to find him at other sites but I do not have any contact info anymore since his email address in his account here is no longer valid. Have you tried Print Planet?
#8
Heidelberg / Re: Signa - reorder press sheets
February 18, 2025, 06:03:43 PM
Quote from: DCurry on February 18, 2025, 04:45:27 PMTrue, but for most of the time that I used Preps it wasn't as a stand-alone. Mostly Prinergy, which would import the templates.

I think they introduced that in Preps 6 which was a complete overhaul of how Preps worked up til then.
We did use it in Prinergy too. On jobs that were a tight fit on the paper we used to have to open the Prinergy impo in Preps and move the press registration eye marks on the template to where there was white paper available. Those couldn't be in bleed so they always had to be positioned to where a page had no bleed. The change only affected the Preps jobs and not the Preps templates they were in the job.
#9
Heidelberg / Re: Signa - reorder press sheets
February 18, 2025, 04:36:45 PM
Quote from: DCurry on February 18, 2025, 04:05:14 PMOne thing that is kinda cool is that when used in a Prinect workflow, when I import a template to the Prinect job, now I can edit that template and the edits are only living in that local Prinect job, not in the template that I imported.
Preps could do that too. Did it daily back in the day.
#10
Adobe Illustrator / Re: Drop Shadow Transparency issue
February 05, 2025, 03:22:03 PM
Vector drop shadows should be against the law. C:-)
#11
Adobe InDesign / Re: Painful InDesign Beach Balling
February 05, 2025, 11:56:23 AM
Quote from: Slappy on February 05, 2025, 11:39:18 AMWell well well - points go to the Old Man Joe!

So far, so good, even if I did forget to backup my regular Prefs too... ::)
:gom:
#12
Adobe InDesign / Re: Painful InDesign Beach Balling
February 05, 2025, 07:22:23 AM
Other option...have you tried deleting InDesign preferences via "macOS: Shift+Option+Command+Control while starting InDesign"? It should prompt if you want to delete InDesign preferences (at least it used to).
#13
Quote from: born2print on February 04, 2025, 01:43:34 PMHere's a pic of the smart mark on a press sheet.
You can see it on the plates too, easier than trying to see the slugs at the bottom (processless plates aren't as easy to see things as regular plates)
That really is a great way of doing it.
#14
Quote from: RMPrepress on February 04, 2025, 12:50:27 PMYeah, well as of Prinergy 10 I think it was you can rename pagesets
OK I upgraded the old workplace to Prinergy 9.something right before I retired. People asked Kodak for years to give us the ability to rename page sets. Good to hear they finally listened. I guess they were just waiting for me to leave. ;D
#15
Quote from: RMPrepress on February 04, 2025, 11:16:28 AMWhat would be the concern with not creating a new page set at the point?  what is the warning about resetting intent information all about?
It depends if Prinergy is pulling the info from the imposition or pageset for the plate identifier info. If it takes them from the impo there is no need to create a new pageset other than if the pageset contains the old job number it might be confusing for someone else to come along into the job. Not really sure about the resetting intent information. I always ignored it and did what I wanted. LOL My experience in Prinergy is 3 years old now though so things might have changed that I am unaware of.