Highlighted

How to get rid of "relink popup" during script execution

Community Beginner ,
Nov 10, 2020

Copy link to clipboard

Copied

hi, 

I'm trying to prevent this popup to showup during the execution of my script. Now it shows up every time the script open a file with broken referencies. This is a problem because it prevents my script to be executed as an automatic job, and it requires that the user manually push "ok" or "cancel".

Any thoughts about? I'm getting running out of ideas.

thanks anyone could help.

test.png

Adobe Community Professional
Correct answer by Kukurykus | Adobe Community Professional

 

displayDialogs = DialogModes.NO, open(File('~/desktop/BrokenLink.psd'))

 

or

 

sTT = stringIDToTypeID, fle = File('~/desktop/BrokenLink.psd');
(dsc = new ActionDescriptor()).putPath(sTT('null'), fle)
executeAction(sTT('open'), dsc, DialogModes.NO)

 

TOPICS
Actions and scripting, How to, Windows

Views

76

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to get rid of "relink popup" during script execution

Community Beginner ,
Nov 10, 2020

Copy link to clipboard

Copied

hi, 

I'm trying to prevent this popup to showup during the execution of my script. Now it shows up every time the script open a file with broken referencies. This is a problem because it prevents my script to be executed as an automatic job, and it requires that the user manually push "ok" or "cancel".

Any thoughts about? I'm getting running out of ideas.

thanks anyone could help.

test.png

Adobe Community Professional
Correct answer by Kukurykus | Adobe Community Professional

 

displayDialogs = DialogModes.NO, open(File('~/desktop/BrokenLink.psd'))

 

or

 

sTT = stringIDToTypeID, fle = File('~/desktop/BrokenLink.psd');
(dsc = new ActionDescriptor()).putPath(sTT('null'), fle)
executeAction(sTT('open'), dsc, DialogModes.NO)

 

TOPICS
Actions and scripting, How to, Windows

Views

77

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 10, 2020 0
Adobe Community Professional ,
Nov 10, 2020

Copy link to clipboard

Copied

 

displayDialogs = DialogModes.NO, open(File('~/desktop/BrokenLink.psd'))

 

or

 

sTT = stringIDToTypeID, fle = File('~/desktop/BrokenLink.psd');
(dsc = new ActionDescriptor()).putPath(sTT('null'), fle)
executeAction(sTT('open'), dsc, DialogModes.NO)

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 10, 2020 0
Community Beginner ,
Nov 10, 2020

Copy link to clipboard

Copied

WOW, thanks I didn't know about this "comma" thing after 

 DialogModes.NO

It works! 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 10, 2020 1
Community Beginner ,
Nov 10, 2020

Copy link to clipboard

Copied

@Kukurykus but what about smartobjects? when the broken link is inside a .psb this approach doesn't seem to work:

 

executeAction(
stringIDToTypeID("placedLayerEditContents")
, descriptor, DialogModes.NO);

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 10, 2020 0
Adobe Community Professional ,
Nov 10, 2020

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 10, 2020 0
Community Beginner ,
Nov 10, 2020

Copy link to clipboard

Copied

thanks, but I don't need to amend the link, I just need to prevent the popup showing up, and to automatically continue the exectution of my script.

My issue is that the popup requires to be manually closed.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 10, 2020 0
Adobe Community Professional ,
Nov 10, 2020

Copy link to clipboard

Copied

Then 'Export Contents' or 'Convert to Linked' and open exported / linked file by earlier script, or else 'Convert to Layers', do what you have on them and put them inside main smart object again.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 10, 2020 0
Community Beginner ,
Nov 11, 2020

Copy link to clipboard

Copied

thanks, now the only thing I miss is how to convert a liked smartobject to a "regular" one.

I'm opening a new thread for this.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 11, 2020 0
Adobe Community Professional ,
Nov 11, 2020

Copy link to clipboard

Copied

runMenuItem(stringIDToTypeID('placedLayerConvertToEmbedded'))

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 11, 2020 0