Relink and Update links in CS5 using VBA
Hi everyone,
Does anyone have a link to an online reference for VBA Scripting in CS5? Most of what I find online is for CS2. That said, I have a VBA script that is written for CS2 that goes through an InDesign document and relinks every link to a certain file path variable, then updates the link (code below). When I run this in CS5, the links do not update. I am not sure how to tell if it is the .Relink() function that is not working, or the .Update funtion that is not working because I do not receive any errors. It just doesn't update. Any help would be really great. Thank you so much!
(this code works perfectly in CS2)
Dim idLink
For Each idLink In idDoc.Links
idLink.Relink (pathvariable & idLink,Name)
idLink.Update
Next idLink
Robohelp has always had a problem. Their help instructions leave the user saying, "I asked a question and your answer is way too ambiguous to be meaningful." They talk about "breadcrumbs" as though you know what breadcrumbs are and can follow what they are saying. To me, "breadcrumbs" are crumbs left by brittle bread. They tell you how to make them without telling you how they look or what they are supposed to do.
It is all over Robohelp. I had to look on Google to find out what a T.O.C. is because they don't say anywhere that it refers to the table of contents.
Robohelp needs to follow this rule: Define a word before you use it. Otherwise no matter how you describe it, the description has no value.
This is why they do things shoddily when talking about VBA. In VBA you have to have "Subs" and "Functions" before you have a place to put the script. In Robohelp they simply show you the lines of code without telling you how to make a sub routine or function. They don't tell you how to dim the variable in Robohelp. It doesn't work the same in Robohelp as it does in MS Access, MS Word or any other application that uses VBA.
Robohelp is trying hard but the people who write things are not communicators. They are obfuscators.
Now for those who need to learn VBA. I teach it after work free. contact me at [email protected] and I can share with you my 18 years of experience using it in MS Access, Word, Excel, Outlook and other applications. However I can't tell you how to use it in Robohelp yet because they don't clue me in on it. They break the rules.
Similar Messages
-
PSD Layer Comps and updating links
I love InDesign's ability to show/hide PSD layers in InDesign, and especially to display Layer Comps of PSD files.
But InDesign seems to have trouble "remembering" which layers / Layer Comps to show when updating links.
An example:
Let's say a product exists in 3 versions: black, white and blue.
A PSD contains a productshot in these 3 color versions using some common and some color-specific layers. A Layer Comp with the color name is assigned to each set of layers that displays the according color version.
Now it's easy to place the PSD in InDesign, choose 'Object Layer Options' (which can contain multiple other layers) and set the correct Layer Comp (eg: "blue").
I set 'When Updating Link' to 'Keep Layer Visibility Overrides' to make sure InDesign remembers the correct color when the PSD is edited.
Now you feel the trouble coming… let's say an extra color red should be added. I add the red version (including a 'red' layer comp) to the same PSD and save it.
When updating existing links, InDesign messes up the existing 'Object Layer Options'. The black version will now show blue, etc…
'Layer Comp' in 'Object Layer Options' does actually show 'blue' while it was 'black' before the update.
Removing the red Layer Comp and save the PSD again doesn't restore the correct Layer Comp in InDesign.
I used this feature often, and updating links never caused me any trouble until now.
Is this a bug, or are the update link options not to be trusted (and was I just lucky in the past)…?Thanks for the clarification!
I guess I was lucky with other files that retained the correct object layer options.
Too bad for this limitation. It makes the whole object layer options feature quiet limited.
I'll add a feature request. -
hi i wanna ask if the update carrier update could affect if i insert another sim and update it..im using softbank but soon i will go back to philippines i wanna use philippine sim,is it possible ? than you
Softbank does not offer unlocking at all. You can not use that phone with another carrier. Sell it before you leave and buy one you can use in the country where you intend to use it.
-
Is there a way to Update and SaveAs, an XFA form using VBA or similar ?
All:
Need help to auto-fill and auto-save PDFs using VBA or some other means.
I have created an XFA form using LiveCycle ES ( v8 ) with a few fields.
What I need to do is repeat these steps below for 200+ PDF forms
Open the blank PDF form
Update 3 fields
Save the PDF with a new name
My Excel VBA code so far ( ** Copied from another post ) where dFile = "C:\temp.pdf" and dAccount = "Any Account"
Sub rxOpenPDF_UpdateFields(dFile, dAccount )
Dim pdfApp As Acrobat.AcroApp, pdfPDDoc As Acrobat.AcroPDDoc, jso As Object
Dim str1$, bolOpen As Boolean, strFile$
Set pdfApp = CreateObject("AcroExch.App")
Set pdfPDDoc = CreateObject("AcroExch.PDDoc")
bolOpen = pdfPDDoc.Open(dFile)
Set jso = pdfPDDoc.GetJSObject
str1 = jso.getfield("Account_Name").Value ' Will appreciate if there is a way to set a field value
pdfApp.Exit
Set pdfApp = Nothing
Set pdfPDDoc = nothing
Set jso = Nothing
End Sub
Excel VBA is shutting down ( cannot recover ) when it runs the pdfPDDoc.Open statement
Any help will be very appreciated
Aubrey
I am on Windows XP,
In VBA, I have created Tool References to [Adobe Acrobat 9.0 Type Library]
Downloaded the Acrobat v9 SDK but am lost trying to locate any help for simple VBA.lrosenth,
Would I be able to Update & SaveAs with a newer version of LiveCycle ( does Adobe still have a LiveCycle line ) ?
I was looking at InDesign but am not sure if it has the functionality that I need ( i.e. create multiple forms from an Excel list)
.. also am unsure of the learning curve.
Aubrey -
Facing problem to Checkin and checkout file from starteam using vba
Hi,
Im trying to checkin and checkout file in starteam through vba. I have imported the
StarTeamSDK104.dll in reference in vba project and tried to accomplish my task.
I am able to locate the file, but not able to checkout/checkin the file. I am not sure how to use checkin/checkout function in vba. I am getting an error at the checkout code(hichlighted in bold in the below code). Also I was able to
do it in java but i want it in vba.
Could someone help me on this.
Below is the code im using.
Sub ST_Test()
Dim strAddress As String
Dim nPort As Long
Dim strUser As String
Dim strPassword As String
Dim strProjectName As String
strAddress = "Sample Address"
nPort = 1234
strUser = "Sample Username"
strPassword = "Sample Password"
strProjectName = "Sample Project"
Dim Factory As New StServerFactory
Dim Server As StServer
Set Server = Factory.Create(strAddress, nPort)
Server.Connect
Server.logOn strUser, strPassword
Dim project As StProject
Set project = FindProject(Server, strProjectName)
Dim view As StView
Dim finder As StStarTeamFinder
Dim Folder As Stfolder
Set view = project.DefaultView
Set Folder = view.RootFolder
For Each chk In Folder.getItems(Server.TypeNames.File)
Dim fileitem As StFile
Set fileitem = chk
If fileitem.Name = "Filename.txt" Then
fileitem.checkout(0,False,True,False )
End If
Next chk
End SubHi,
As for the checkout method, please refer to the following link:
http://msdn.microsoft.com/en-us/library/office/aa223821(v=office.11).aspx
The syntax is:
expression.CheckOut(FileName)
Jaynet Zhang
TechNet Community Support -
Inserting and Updating records in ORACLE using WebDynpro Java
Hi All
I got connected to oracle backend (using my previous thread), but now i want to insert and update the records
i have created views for insert and update,
Thanks in advance
SushmaHi shusma..
chk this link..
<b><u>Creating Connection</u></b>
package com.sap.xirig;
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
public class DBLookup {
String Conn_Status = "Not Connected";
String Language_Desc = "Empty";
String Language_Cd = "Empty";
Connection conn;
Context ctx;
DataSource ds;
//Constructor for the DBLookup object
public DBLookup {
try {
ctx = new InitialContext();
if (ctx == null) {
throw new Exception("Boom - No Context");
// If JDBC 2.0 connection is used please create the DataSource object as below
// ds = (DataSource) ctx.lookup("jdbc/ORACLEDATASOURCE");
// If JDBC 1.0 connection is used please create the DataSource object as below
// ds = (DataSource) ctx.lookup("jdbc/notx/ORACLEDATASOURCE");
if (ds == null) {
throw new Exception("Boom - No dataSource");
catch (Exception e) {
e.printStackTrace();
public String getLanguageDesc(String v_str) {
Statement stmt = null;
ResultSet rst = null;
try {
if (ds != null) {
conn = ds.getConnection();
Conn_Status = "Could not get connection to
datasource";
if (conn != null) {
Conn_Status = "Got Connection " +
conn.toString();
stmt = conn.createStatement();
rst = stmt.executeQuery("SELECT
LANGUAGE_DESC FROM LANGUAGETRANSLATION WHERE LANGUAGE_CD='" + v_str +
if (rst.next()) {
Language_Desc = rst.getString(1);
conn.close();
catch (Exception e) {
e.printStackTrace();
finally {
if (rst != null) {
try {
rst.close();
catch (Exception e) {
e.printStackTrace();
if (stmt != null) {
try {
stmt.close();
catch (Exception e) {
e.printStackTrace();
if (conn != null) {
try {
conn.close();
catch (Exception e) {
e.printStackTrace();
return Language_Desc;
http://e-docs.bea.com/wls/docs81/oracle/API_joci.html
Hope this will help u..
URs GS -
How to select and duplicate the records and update some column values using cursor
I have a table with 920 records, we need to update the end date to 6/30/2014 for 920 records and I need to create all 920 records with start date is 7/1/2014 and update the external value to
CCC.
Note: the table primary key is not auto increment, but I have sp to get the latest key for that.
Existing table.
ID
Source Name
Internal value
External value
Start date
End date
1
XXX
AAA
BBB
1/1/2013
6/30/2015
Create new records
ID
Source Name
Internal value
External value
Start date
End date
921
XXX
AAA
CCC
7/1/2013
12/30/2015Hi ManuGT
If I understand what you need then you ask for:
1. updating all current rows (920 rows in the table now)
2. insert new rows which are duplicates of the preiviews rows, but with value 'CCC' insteade of 'BBB'
If so, there is not reason to use a cursor and it is highly NOT RECOMMENDED to use ant type of loop.
You should work with SET and do it all in 2 simple queries:
-- first we duplicate the existing rows,
-- but we use the values 'CCC" and '20140107' for the new rows values
INSERT test (SourceName, InternalValue, ExternalValue, StartDate, EndDate)
select SourceName, 'CCC', ExternalValue, '20140107' , EndDate
from test
where
-- You can use any filter that you need if you dont want to update all rows
InternalValue = 'AAA' and ExternalValue = 'BBB' and StartDate = '20140101' and EndDate = '20140630'
-- Now we update the old rows (check the filter! I get only the old rows since I filter the new rown out)
UPDATE test
SET EndDate = '20140107' -- I use date in format yyyymmdd, You can use other formats as well
where
-- You can use any filter that you need if you dont want to update all rows
InternalValue = 'AAA' and ExternalValue = 'BBB' and StartDate = '20140101' and EndDate = '20140630'
Unfortunately you did not post DDL+DML! Therefore we cant see your table structure and the data sample and we can only guess. I used Saeid's post as the basic DDL+DML.
Please next time post DDL+DML
here is the full code with the DDL+DML that i used:
-- This is our DDL - A create table query:
create table test
( id int identity(1,1) primary key,
SourceName nvarchar(3),
InternalValue nvarchar(3),
ExternalValue nvarchar(3),
StartDate date,
EndDate date
go
-- This is our DML - A query that insert some sample data
declare @i int = 1 ;
while @i < 921
begin
insert test (SourceName, InternalValue, ExternalValue, StartDate, EndDate)
values ('XXX', 'AAA', 'BBB', '1/1/2014', '6/30/2014' ) ;
set @i += 1 ;
end ;
GO
-- Here is the solution for the problem as I understood your needs:
-- first we duplicate the existing rows,
-- but we use the values 'CCC" and '20140107' for the new rows values
INSERT test (SourceName, InternalValue, ExternalValue, StartDate, EndDate)
select SourceName, 'CCC', ExternalValue, '20140107' , EndDate
from test
where
-- You can use any filter that you need if you dont want to update all rows
InternalValue = 'AAA' and ExternalValue = 'BBB' and StartDate = '20140101' and EndDate = '20140630'
-- Now we update the old rows (check the filter! I get only the old rows since I filter the new rown out)
UPDATE test
SET EndDate = '20140107' -- I use date in format yyyymmdd, You can use other formats as well
where
-- You can use any filter that you need if you dont want to update all rows
InternalValue = 'AAA' and ExternalValue = 'BBB' and StartDate = '20140101' and EndDate = '20140630'
-- Here we just check how the result look like :-)
select *
from test ;
-- And since we do not realy need this table in our server... Here we clean the DDL (you probaby DO NOT WANT TO EXECUTE THIS!)
DROP table test
GO
I hope this was useful :-)
[Personal Site] [Blog] [Facebook] -
[Req.] script for updating links in Indesign using spotlight
hi,
i've got a challange, can somebody please help me?
I'm a graphic designer from holland and I work with lots of Indesign documents
whose links are missing because they are moved, so they are somewhere on our server.
I have several scripts to relink missing links but they are slow,
because they search every directory and every subdirectory. This takes a while.
The search engine from apple, spotlight, is much much faster.
So I think i have this brilliant idea, i thought of the following:
I select one missing link in the linkpanel in Indesign.
Then I start the script.
The path of the missing link is copied and trimmed to just the name of the file
The filename is then copied to the clipboard.
The script then opens the dialog window to relink the missing link.
There the name of the picture is pasted in the spotlight search engine.
There the script stops.
Click on the correct file (if there are more choises) and the relink is made.
I think this way of relinking can be much faster.
And you can also work with pre-defined clever windows (to limit the results), for example:
- one witch only shows jpg
- one witch only shows tiff
- one witch only shows pdf
I know a tiny little bit of scripting, but this one I cant figure out yet.
Can somebody give me a help please?
Kind regards, Eric
ps. I still work in CS4try this,
could just test it with ID CS3 and Mac OS 10.4.11
--startpoint here is a selected graphicframe (which of course should inlude the missing link)
set myFolder to choose folder with prompt "Where to search for the missing link?" --select a mounted volume, folder ...
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to ":"
tell application "Adobe InDesign CS3"
set myGraphicFilePath to (file path of (item link of (item 1 of all graphics of (item 1 of selection))) as text)
end tell
set myGraphicName to text item -1 of myGraphicFilePath
set myGraphicFilePath to quoted form of POSIX path of myGraphicFilePath
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 '" & myGraphicName & "'")
set PathToAllFiles to my cleanList(myGraphicName, PathToAllFiles)
repeat with i from 1 to count of PathToAllFiles
set theItem to (item i of PathToAllFiles)
if button returned of (display dialog theItem with title "Relink this file?" buttons {"OK", "Cancel", "Go on"}) is "OK" then
tell application "Adobe InDesign CS3"
relink (item link of (item 1 of all graphics of (item 1 of selection))) to POSIX file theItem
end tell
end if
end repeat
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
Hans-Gerd Classen -
How to Access and Update Existing DW site using DW 5.5 on new laptop?
We already use InDesign and have recently upgraded to 5.5. At the same time my partner bought a new laptop and decided to upgrade his version of DW. This was an early version, with no upgrade path, so he bit the bullet and bought DW 5.5 No problems installing it on his new laptop. His site is extensive but very basic - no addons. He has a good basic grasp of html.
What he would now like to do, is to download the remote site onto his laptop from its host and in future update it from his laptop.(He travels a lot.) As I said it is an early version of DW, predates CS versions but is just basic html. Is there a generally accepted way of doing this? If so is it in the tutorials etc? He can't find it in theHelp for 5.5?
Just to add, the new laptop would be the only location on which the website wouldbe stored. This is so he can update it from the road and keep to a single version to update.If you could bear with me a bit longer. My partner has an old version of DW and so some of the interfaces have changed.
Am I correct, he must open the local site on his old pc, using the orignal software on there, and then using Sites/Manage Site options export it in .ste format? (I am assuming his orignal DW version has these options.) Does he create the new export .ste version with the same name?
At this stage he should then have a .ste version of his site on his old computer. You say he should then" send" this file to the new laptop. Do you meant copy it onto a memory stick and import it to the new laptop as though it were a new file? Then go to the remote server to access the file there and update it?
One last question, my partner cannot find the command to access his remote site, in DW CS 5.5 - He says it is not where it is on his version. Where is the remote site access command in DW CS 5.5 please? -
Create and Password protect a pdf using VBA?
Hi,
I have a requirement to generate and password protect a pdf using a Microsoft access application (version 2007).
I have seen plenty of code examples for generating the pdf, but is it possible to password protect the pdf programmitically?
Thanks!is it possible to password protect the pdf programmitically?
Yes, you can write a plugin for Acrobat. -
Question on templates and updating linked files
OK I have a master template file. Let's say it is named
a.dwt. I used a.dwt to create another template (b.dwt) that had
more content on it than a.dwt. I would use b.dwt to create a group
of similar looking pages which still had all the elements of a.dwt
but also the additional content of b.dwt.
Now if I make a change to the a.dwt template, all pages
created from a.dwt change except b.dwt. So either I forgot to
create the b.dwt by going to file->new->page from
template->and then save it as a .dwt OR maybe it's not possible
to have a secondary template that gets updated when the first
template gets updated thus causing all pages from the secondary
template to get updated?
Is there any way to go back and make b.dwt update
automatically whenever a.dwt gets updated? The scenario I have
right now is that I have to make certain site changes on both a.dwt
and b.dwt instead of just making the change on a.dwt and that
change flowing into b.dwt and its spawned pages.>I think what possibly happened is that I opened a.dwt and
then made the
> addition of the form element to a.dwt but then simply
saved as b.dwt
> instead of
> FILE | New From Template
Yes, I think that's a possible scenario.
> There will be about 15 pages that will look the same
(have the
> same form) except that at the top it will say "Send mail
to Person X"
> where
> Person X will change.
I see. Are you using "mailto:" on each of those forms? This
method of
sending form data is notioriously unreliable, you know? It
depends on a)
your visitor's browser knowing what to do with such a link,
and b) your
visitor's email client knowing what to do with such a link,
and c) your
visitor not being put off by the security alert message that
may pop up when
they click. Nevermind the fact that it fails completely in
public locations
that do not have an email client installed.
Why not do this the right way with server scripting? In that
case you could
have a single page with a single form, and let the visitor
select a name as
the recipient from a list/menu field.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Johnny the boy" <[email protected]> wrote
in message
news:[email protected]...
>I think what possibly happened is that I opened a.dwt and
then made the
> addition of the form element to a.dwt but then simply
saved as b.dwt
> instead of
> FILE | New From Template
>
> Thus when I made changes to a.dwt, they did not
propagate to pages created
> from b.dwt
>
> I am asking you what I should do. Should I create a new
page from a.dwt
> and
> then paste in the form code (which is the additional
code that
> differentiates
> it from a.dwt)? There will be about 15 pages that will
look the same
> (have the
> same form) except that at the top it will say "Send mail
to Person X"
> where
> Person X will change.
>
> Or should I nest the templates by doing your steps:
> 1. Create a.dwt.
> 2. Spawn a child from a.dwt with FILE | New From
Template..., and select
> a.dwt
> 3. Edit this child, as needed, and then SAVE IT AS A
TEMPLATE, e.g., FILE
> |
> Save as Template....
>
> I do not understand how there will be a complex
maintenance price. The
> behavior that I would be looking for is that if I had to
make an addition
> or
> edit of the navigation using a.dwt, the change would
carry over to the
> b.dwt
> template and it's pages.
>
> I am kind of leaning towards copying the code that is
already present for
> the
> forms spawned from b.dwt and then pasting it into a
brand new page that is
> spawned from a.dwt but I don't know if that's the best
way to do it or if
> there
> would be consequences.
> -
Change dimension and update table that was used in the AUTOBIND
Is there a way that I can update the definition of my dimension by adding a column and
have it update the definition of the table that was used in AUTOBIND without destroying all my constraints to the table.
I just want to bring over the new coulmns.
This is in 11gr1
I guess if I have to I can change the dimension to manual and then perform the binding manually.
Is this the only way.
thanks
greGyes, that is the way to do.
Alter the table to add new columns
Alter the dimension to add new columns ( change storage type to manual)
manually connect the dim to table
rgds
Mahesh -
help
Try all of this:
- Other USB port.
- Other USB cable
- Other computer.
If this not worked. Put iPhone in to DFU mode. And restore.
Also read this:
http://www.apple.com/support/iphone/assistant/restore/ -
Update the Player Flash CS5 Uses (In Test Movie)
So Flash CS5 came with a beta version of Flash Player 10.1.
Now that the official release of Flash Player 10.1 is released, how do I update what Flash CS5 uses when I Test Movie?
I have so far updated the Flash Player in my browser and my standalone players but I can't seem to figure out how to update the Player that Flash CS5 uses.
This wouldn't be so bad if the beta of 10.1 wasn't breaking my project because of bugs.
Any help appreciated.More bumps, there has to be a way to do this. Adobe wouldn't cement in a beta verison of Flash Player into Flash CS5 would they?
-
How to connect one page using button and by link in BSP
how to connect one page using button and by link in BSP
hi,
use on 'onclick' functionality.
1. In layout, onclick = 'NEXT_PAGE' of the button
2. Capture the event in onInputprocessing,
DATA: event_id TYPE REF TO cl_htmlb_event.
case event_id.
when 'NEXT_PAGE'.
navigation->goto_page( 'URPAGE URL' ).
Maybe you are looking for
-
Relationship deletion of BP in CRM
Hi Friends, My Requirement is to delete a relationship Contact person of a BP. when i delete it system shows an Error message that " Contact person still been used, can not be deleted". can anyone tell how to delimit the validity period of a relation
-
Hi thee. As logical as I can be. I export a file back into my folder as a PSD. I then export that file to PS. Work on it, save and return it to LR. The file goes to the bottom of the folder from where I have to put it back in the original place,
-
Order Management - Reservations through Inv Item Reservation
A Basic Question. We want to Link a Sales Order with Purchase Order through Inventory --> On Hand Availability --> Reservations Form. 1. What is the flow for this? Whether SO needs to be created first or PO needs to be created first? 2. Where can we
-
PLS-00306: wrong number or types of arguments
I need a fresh pair of eyes. Here is a function def and a function call. Why is it not working? Thanks FUNCTION: PROCEDURE Create_ServiceRequest ( p_api_version IN NUMBER, p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE, p_
-
I downloaded the add-in to watch recorded webinars from my classes but when I click on the link it opens a new window and says the add-in is not downloaded. I click on the troubleshooting link and run the test and it is fine and says its downloaded,