[Req] script to update the links in Indesign using spotlight
Hello
I have a challenge, can someone help me please?
I'm a graphic designer from Holland and I work with a lot of Indesign documents
which links are missing because they are displaced, so that they are some share on our server.
I have several scripts to connect the missing links, but they are slow,
because they each directory and in each subdirectory. It takes some time.
The apple search engine, Spot, is much faster.
So I think that I have this great idea, I thought about the following:
I select a missing link in the linkpanel in Indesign.
Then I run the script.
The path of the missing link is copied and ready to just the name of the file
The name of the file is then copied to the Clipboard.
The script then opens the dialog window to repeat the missing link.
It the name of the image is pasted into the spotlight search engine.
Here, the script stops.
Click the correct file (if there is more choises) and recreate it a link is done.
I think that this way of restoring links can be much faster.
And you can also work with predefined smart windows (to limit results), for example:
-a witch only shows jpg
-a witch only shows tiff
-a witch only shows pdf
I know a very small little scripting, but this one I can't understand yet.
Can someone give me help please?
Best regards, Eric
PS. I'm still working in CS4
Although you have a solution and sorry for quitting yout ID should have tested more then once, it was a pretty old script and I just copy and paste...
just rewritten my old script a little to run on ID CS OSX 10.7.4 5.5
Should pass on missing links in the Active Document, use mdfind to search for files with simular names as name of missing link in the given directory, reveals possibly the file in the finder and shows / selects currMissingLink in ID-file. If 'ok' rebuild the missing link (without leaving ID ;-) I hope).
global myFolder set tid to AppleScript's text item delimiters tell application "Adobe InDesign CS5.5" set currDoc to active document set theMissingLinks to every link of currDoc whose status is link missing if theMissingLinks is not {} then set myFolder to choose folder with prompt "Where to search for the missing links?" --select a mounted volume, folder ... repeat with missingLink from 1 to count of theMissingLinks set currMissingLink to item missingLink of theMissingLinks set currFileName to name of currMissingLink set theResultList to my mdFind(currFileName) if theResultList is not {} then repeat with i from 1 to count of theResultList set theItem to (item i of theResultList) set currDialog to display dialog theItem with title "Relink this file?" buttons {"OK", "Cancel", "Show in Finder first"} if button returned of currDialog is "OK" then try relink currMissingLink to POSIX file theItem on error e display dialog e end try else if button returned of currDialog is "Show in Finder first" then show currMissingLink --select the missing link in ID my revealInFinder(theItem) --show the found file in finder activate set currDialog to display dialog theItem with title "Please switch to Finder to see the file. Relink the file shown in Finderwindow?" buttons {"OK", "Cancel", "Continue searching"} if button returned of currDialog is "OK" then try relink currMissingLink to POSIX file theItem on error e display dialog e end try end if end if end repeat end if end repeat end tell on mdFind(currFileName) set AppleScript's text item delimiters to return set PathToAllFiles to every text item of (do shell script "mdfind -onlyin '" & quoted form of POSIX path of myFolder & "'" & space & " -name '" & currFileName & "'") set PathToAllFiles to my cleanList(currFileName, PathToAllFiles) end mdFind set AppleScript's text item delimiters to tid on cleanList(fileName, listOfFilePaths) set myCleanList to {} set AppleScript's text item delimiters to "/" repeat with p from 1 to count of listOfFilePaths set aName to (text item -1 of (item p of listOfFilePaths)) if aName is equal to fileName then set end of myCleanList to (item p of listOfFilePaths) end repeat return myCleanList end cleanList on revealInFinder(somePosixPath) tell application "Finder" set myAlias to (POSIX file somePosixPath) as alias activate reveal myAlias end tell end revealInFinder
Hope it will work
Hans-Gerd Classen
Tags: InDesign
Similar Questions
-
I moved a file to one internal drive to another on a MacPro mid 2012. Whenever I open a moved file, I have to update the links manually. Is there a procedure to do it automatically?
How to create the links?
Are we talking ln links? Use flexible links. the default value is difficult.
R
-
BlackBerry 10 updated the link
My understanding BB has updated the link software to fix some minor bugs which have resulted in a less than perfect data transfer of older phones as well as allowing you to restore the operating system to BB10. When we try to transfer the data shape Bold 9780 for my daughter to his new Z10; the Z10 locked up and we had to send it back and get a replacement. She sold her 9780 before the replacement Z10 arrived, so I used the BB Desktop and created a backup of his 9780 before proceeding with a security wipe. Is it possible to get the backup of the data transferred to the replacement Z10 now. I thought borrowing a 9780 use as a "mule" to reload the data from my daughter and then use the link to transfer data. I'm hoping that it could be a way to convert the backup file in a format that the BB10 can recognize. Any ideas would be appreciated.
Hey JJESSON,
BlackBerry link includes the old backups, are called "Backups of Legact". Just connect the 10 BlackBerry device to the computer, and then select backup. Select the icon of the folder on the BlackBerry link and navigate to the location of the backup file 9780, it will be called a "legacy of backup."
Note however that not all the information is transferred from one the 9780 for the z10 as some of the parameters/data are not supported on the z10 since the device 9780 6.0. Check out the below Knowledge Base for more information about the supported data :
-
Creative cloud is asking to update the two CC indesign and indesign CC2014 on my mac. Is there a way to eliminate the double?
You can uninstall one of them.
-
Script to renumber the links in random order
I have Chapter 1 page with 50 small photos in a very Orthodox and symmetrical grid should I repeat in a different random order for other chapters.
Links have a logical syntax numbered like:
pict1. TIF
PICT2. TIF
etc.
For Chapter 2, the idea is to repeat the first but in a random order. Same photos, same layout, different order.
Perhaps a script could rename the links?
Thus, once the folder is duplicated, I'll have a second folder:
Photo 1. TIF is now, for example, pict45.tif
Picture2.tif.is now, for example, pict13.tif
etc.
IF I recreate a link to a copy of Chapter 1 of this second issue perhaps the idea could be resolved.
Jarek, salvation.
It works when it's only ONE image per page.
But, with lots of photos on the page, as in the example, the script is dead.
(no error at all)
I have six pages with the same grid of images repeated in a file.
The idea is that, at 2, 3, etc., the script changes the order randomly have different positions.
I have tried various combinations but were useless.
Thank you.
PD. The screenshots show the script works with simple images.
-
I am reorganizing my images on my Web site and cannot update the links!
I am reorganizing my images on my site. I got all my images together in the pictures folder, but now I find that I have too many.
So I was moving the images to new subfolders that I created in the folder of images on the local display.
I managed to accomplish half of my work successfully, every time be asked if I wanted to update the links, what I'm doing. Now I get is more invited to update my links despite the prompt to be turned on in my general preferences panel. I even tried to change the "promt" say "always" in the general Panel of preferences, but whenever he reacts as if I chose '' never. ''
Please could you help me understand why this is happening. It will take to always update by hand! I use dreamweaver cs5.
Ah, that's easy.
Your cache I messed up. Release of Dreamweaver. Restart Dreamweaver. Most of the time dealing with the problem.
But you may need to clear the cache for this site. Davis powers details how in the FAQ:
-
Can you please update the link for the standalone installer of flash player?
Can you please update the link for the standalone installer of flash player?
Link: http://fpdownload.Macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug_3 2bit.exe
Source: http://kb2.Adobe.com/de/CPS/191/tn_19166.html#main_ManualInstaller
Source: http://forums.Adobe.com/thread/889580
Key of dogs says:
Source: http://kb2.adobe.com/de/cps/191/tn_19166.html#main_ManualInstaller
It is an old document (Flash Player 10.3) that should not be there anymore. (The English document redirects to the link below).
Download links for installers for FP 11.2 offline are here tall_in_a_firewall_proxy_server_environment http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#Ins
I've updated the download links for 10.3 FP in http://forums.adobe.com/thread/889580
-
'Update the link' shortcut keyboard
Y at - it a keyboard shortcut to automatically update the links updated the? I could not find in Edition > keyboard shortcuts, maybe there's another way?
Thank you!
Try this...
-go to the Edit menu > keyboard shortcuts
-in the pop-up window, select the Panel Menus of
-Scroll the section that begins with links... until you get to the links: updated link
-set up a key of your choice command
-Click "assign".
-another window appears saying: you cannot change the game by default - and you want to create a new set based on the default value. Click Yes
-in the new popup window, name the set, and then click OK
-Click OK in the open window
... you should be good to go.
Good luck!
Elaine
-
Use a script to update the MaxL substitution variables
We use the Essbase 11.1.1 version. Can we use MaxL script for updating the substitution variables rather than using the EAS web console? We want to put the MaxL script in a batch file and plan its Windows scheduled task.
Thanks for your help!Hello-
Yes. Here is an example of script maxl-
connection "Hypadmin" "#" on myessbaseserver.
spool to 'mymaxl.log ';/ * Definition of the substitution variable * /.
ALTER database appname.databasename set variable "CurMonth" "August";variable display;
spool off;
Disconnection;
Exit;You can call this maxl from a batch file at the request of windows scheduled task.
Concerning
-
How dynamically update the role of oracle using the trigger
How dynamically update the role of oracle using the trigger:
I have svmanger owner of schema in the database. There are five tables belonged to svmanager.
Table A, B, C, D, E.
I have a role that is played only to these tables under the scheme: SVMANAGER_READ_ONLY
now, if I create a new table F under svmanager. the role that svmanager_read_only does not work is updated, so the user had assigned role cannot access table F.
is there a way to create the trigger for this role dynamically update any when a table is created or deleted?
Thank you.I really really really don't suggest to do this - it's a bad habit. If possible I'd just adding the grant as part of the steps to the role on the new creation of the table.
But for fun here's how you can accomplish this:create or replace procedure execute_grant(v_ddl in varchar2) is begin execute immediate v_ddl; end; /
create or replace trigger catch_create_table_trg after create on schema DECLARE ddl_job number; ddl_str varchar2(50); begin IF ora_dict_obj_type = 'TABLE' THEN ddl_str := 'GRANT SELECT ON '||ora_dict_obj_owner||'.'||ora_dict_obj_name||' TO SVMANAGER_READ_ONLY'; dbms_job.submit(job => ddl_job, what => 'execute_grant(''' || ddl_str || ''');', next_date => sysdate+(5/24/60/60)); END IF; end; /
Test it
create table F (id number(1));
Validate
select * from ROLE_TAB_PRIVS where ROLE = 'SVMANAGER_READ_ONLY';
-
Girls need help with a script to repeat the link to another folder in indesign
I REALLY hope you smart people can help me.
We had servers which means that all of our Indesign documents now have a broken link. To manually "re-edit the link to the file" causes Indesign down :-(. And it takes forever I am hoping to find a script that can connect all the links in the doc to a new file structure.
The name of the link (name of file) and the file structure remains the same; Just point to another server. The structure contains subfolders so the best way would be that the script can see subfolders as well, but otherwise I would gladly use a script that points of 6 subfolders at a time.
Problem - I KNOW NOT ALL SCRIPTS and I'm a graphic designer so I can't create scripts :-(. I have already had success Googling a script to unlink everything in the document, but I don't know how to run the script. DO NOT to create them.
ANY help in this forum? I have 6 designers waiting for me to fix this.
Is there a script where I could just change the path and then he could repeat?
We have iMac OSX Yosemite 10.10.4
PLEASE HELP... :-)
/ Dina
Try this... it is created by Vamitul
main() {} function
var doc = app.activeDocument;
myLinks var = doc.links.everyItem () .getElements ();
var linkObj = {};
Create the initial object
/ * {linkObject
[path] {missingNr,
arrayOfMissingLinks}
} */
for (var i = 0; i)< mylinks.length;="" i++)="">
If (myLinks [i] .status == LinkStatus.LINK_MISSING) {}
var myPath = File(myLinks[i].filePath).path.toString ();
If (linkObj [myPath] == undefined) {}
linkObj [myPath] = {}
missingNr: 1.
missingLinks: [myLinks [i]],.
newPath: "
}
} else {}
linkObj [myPath] .missingNr ++;
linkObj [myPath].missingLinks.push (myLinks [i] .getElements () [0]);
}
}
}
$.writeln (linkObj.toSource ());
var myDialog = new window ("dialog", "link Chaser:', undefined");
Panel1 = myDialog.add var ('panel', undefined, "double-click to select the new path '");
Panel1. Align = ["fill",""];
myList var = panel1.add ("listBox", undefined, "", {})
columnWidths: [160, 160, 130],
numberOfColumns: 3,.
showHeaders: true,
columnTitles: ['old road', 'New Path', 'Nr. missing links']
});
myList.size = [450, 200];
myList.align = ["fill",""];
for {(var missingPath in linkObj)
with (myList.add ("item", missingPath)) {}
Subitems [0] .text is linkObj [missingPath] .newPath;.
Paragraphs [1] .text is linkObj [missingPath] .missingNr;.
}
}
myList.onDoubleClick = function() {}
var myNewPath = (new folder (app.activeDocument.filePath) .selectDlg ("Select New Folder") |. toString() ' ");
myList.selection.subItems [0] .text = myNewPath;
linkObj [myList.selection.text] .newPath = myNewPath;
}
myDialog.add ('button', {undefined, "Ok",
name: 'ok '.
});
myDialog.add ("button", undefined, "Cancel", {})
name: "Cancel".
});
If (myDialog.show () == 1) {}
for (var i in linkObj) {}
If (linkObj [i] .newPath! = ") {}
var fixedNr = 0;
Var links = linkObj [i] .missingLinks
for (var j = 0; j)< links.length;="" j++)="">
var queue = newFile (linkObj [i] .newPath + "/" + links [j] .name);
If {(newFile.exists)
fixedNr ++;
Links [j] .relink (NewFile);
}
}
Alert ("in the folder: \n" + linkObj [i] .newPath + '\n' +)
'Fixed' fixedNr ' links of ' + linkObj [i] .missingNr + '\n ' +.
"Please check");
}
}
};
}
app.doScript ('main()', undefined, undefined, UndoModes.entireScript, "Chaser link");
-
Script to recreate a link to InDesign CS5.5 needs help
Hi, I am looking to recreate a link to images in an InDesign CS5.5 file to another server using a script. This is what I have so far, but when I run the script I get errors and the can't connect because "the file does not exist, you may not, or the file may be in use by another application". Does anyone know how to make this script work? I am fairly new to scripting.
Here is the script that I have:
say application "Adobe InDesign CS5.5.
say document 1
the value linkList to links
set errInfo of ' ' -we display error if we cannot create a link to an element.
-------
Repeat with x in linkList
if (xof the status) is not normal and then - I'm usually checking for any link that has an error
-This should only return a path of AppleScript with ': ' separators
the value linkPath to (xof path) as string
-------
if "Volumes/Calendars_2013 OPS" is in linkPath then
the value AppleScriptto point text delimiters to "OPS Volumes/Calendars_2013.
set linkPath of (linkPath text elements( ) - create a list of text items
the value AppleScriptto point text delimiters of "Volumes/Calendars_2013.
set linkPath of ( linkPath string() - concatenate with the new path
set "Of text delimiters AppleScript point to " ' -TIDs Reset .
-------
try
-Need to make our string (path) in a path of the alias
relink x to alias linkPath
-------
try
Update x -this can be useful
end try
on error Err
-We will store the name of the link, if the error occurs
the value errInfo to (errInfo & return & xof name)
end try
end if
end if
end Repeat
-------
-If an error occurs when trying to bind again, we post it
if (County errInfo) > 0 then display dialog ("' cannot link again:" & errInfo")
end say
end say
-Hector
Hello
whatever... the dictionary said...
--> ' / Volumes/Calendars_2013 OPS/2013_Dog_Breeds/2013_A_B/9764-2_BichonPups_SQ/9764-2_imagefolder_ SQ2013/9764 - 2_01a_SQ2013.jpg.
There is no macPath.
So let's try the delimiters of the text you point first post and:
relink x to posix file linkPath
Hope this will work
-
Impossible to update the DPS in InDesign CC
When I try to access the generator of Folio in InDesign CC it says "a software update is required to use Digital Publishing Suite. Please go to the Help menu and select updates to get the necessary software. »
When I go to help or update creative cloud it says that all of my software is up-to-date.
When I downloaded the Adobe Patch from the link below Installer, it says "updated contact your administrator if you want to apply updates on your machine. Updates have been removed by the administrator.
http://helpx.Adobe.com/Digital-Publishing-Suite/help/installing-digital-publishing-tools.h tml
Any advice?
Branched out in a new discussion, the other thread has been more than a year.
See turn off auto-mises updated | Application manager | COMPUTER administrators to resolve the message "deleted by administrator", assuming that you are not actually in a corporate environment that removes updates. You will need to delete a file from your machine. The location and the name of the file is found on the page I linked.
Neil
-
Help with a script to remove the link "Place and link" content
Hello
I need a script that will separate the content that has been placed in an indesign document by using the feature "place and link.
I know I can manually go to the link Panel, select the linked content here and click 'remove link' in the Panel menu. However, I have about 200 indesign documents that are all full of content that has been 'placed and connected '. One I get a script to unlink content, I can add it to a batch routine to make the record of 200.
Can anyone help please.
See you soon
Like this?
app.activeDocument.links.everyItem () .unlink ();
-
Model of updates the links not properly
Dreamweaver CS3 for Mac:
I had to add this in my template file already existing at the level of the site:
<!-[if IE] >
"" < link href = "... / iestyle.css" rel = "stylesheet" type = "text/css" / >
<! [endif]-->
but unfortunately the links that are more than one level deep not updated correctly on my HTML pages.
Is it possible to make this work?
MartinOK, it seems that Dreamweaver is overworked by changing the template of links within conditional statements.
It's very sad, if this group is read by Adobe people please correct it before Dreamweaver CS4!I prefer clean HTML files, but it seems that the only solution is to inflate each file with browser specific CSS or scripts as follows:
It's really sad!
Maybe you are looking for
-
Phone will not let me add a card to buy apps, he said of "try again later" How can I reset my Iphone 6plus or how much time I have to wait
-
HP mini 110 computer: forgotten password
Hi my hp mini 110-1030NR as password I forgot it please can you help me System: CNU9280C6K
-
Xoom: Preparation for sale/return
I just wanted to confirm that if a purchase a Xoom and try, if I come back, if there is a way to absolutely, positively, to erase any personal data. I know that sometimes the factory reset does not delete EVERYTHING (some cache files and the remains
-
VPN site to Site from one-way data (need help)
Hello Scenario: VPN site to Site with Cisco 837 routers: Place: Clients and printers Site B: server queues and Print Site A can communicate via VPN using RDP to site B, very well. Question: Site B cannot send print jobs to printers on the Site A. als
-
Sourcefire 6.0 / FireSIGHT MC 6.0 - users do not fill
Edit: moved to Sourcefire category. --- Hi all I was wondering if someone can lead me in the right direction here, I have a customer running Sourcefire 6.0 with the MC FireSIGHT and am having a problem with the IP address for the mapping of the users