Deviced Link profile name Display inconsistency

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

duanlook
Posts: 2
Joined: Mon Apr 12, 2021 3:02 am

Deviced Link profile name Display inconsistency

Post by duanlook »

1.open file
2.menu select ---Edit-----Convert to Profile... See Figure 1
1.jpg
1.jpg (422.37 KiB) Viewed 2090 times
3.click Advanced....See Figure 2
2.jpg
2.jpg (53.71 KiB) Viewed 2090 times
4.Selected Deviced Link,profile by dropbox list select ----honghua-4......See Figure 3
3.jpg
3.jpg (94.75 KiB) Viewed 2090 times
5.click ok....
6.get :
var idconvertToProfile = stringIDToTypeID( "convertToProfile" );
var desc89 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref4 = new ActionReference();
var idDcmn = charIDToTypeID( "Dcmn" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref4.putEnumerated( idDcmn, idOrdn, idTrgt );
desc89.putReference( idnull, ref4 );
var idT = charIDToTypeID( "T " );
desc89.putString( idT, """honghua-4#""" );
var idInte = charIDToTypeID( "Inte" );
var idInte = charIDToTypeID( "Inte" );
var idImg = charIDToTypeID( "Img " );
desc89.putEnumerated( idInte, idInte, idImg );
var idMpBl = charIDToTypeID( "MpBl" );
desc89.putBoolean( idMpBl, true );
var idDthr = charIDToTypeID( "Dthr" );
desc89.putBoolean( idDthr, true );
var idsdwM = charIDToTypeID( "sdwM" );
desc89.putInteger( idsdwM, 6 );
executeAction( idconvertToProfile, desc89, DialogModes.NO );
save as 1.jsx
6.delet Adobe Photoshop CC or 2020 Settings
7.open file
8.run 1.jsx
9. i find Deviced Link profile name no change ,don't display honghua-4....why?
duanlook
Posts: 2
Joined: Mon Apr 12, 2021 3:02 am

Re: Deviced Link profile name Display inconsistency

Post by duanlook »

I already know the reason
User avatar
Kukurykus
Posts: 528
Joined: Mon Jul 25, 2016 12:36 pm

Re: Deviced Link profile name Display inconsistency

Post by Kukurykus »

I didn't understand what you want to achieve. Do you want after deleting settings folder something was already not choosable?