[CS5] Run a script on the open document
Is it possible to run a script automatically whenever a document is open?
Application has the "beforeOpen" event listener, which won't work, the document is not opened and Document has the "afterOpen" event listener, but which cannot be added until after the document is already open, so I'm not sure was what it serves.
Any help would be appreciated.
/Dan
.. .and document has the "afterOpen" event listener, but will not be added until after the document is already open, so I'm not sure what it serves.
You can do it-here is an example:
#targetengine "MyEngine" var myEventListener = app.eventListeners.add("afterOpen", myDocOpen, false); function myDocOpen(myEvent) { var myDoc = app.documents[0]; myDoc.pages.add(LocationOptions.AT_END); }
It is important to use app.documents [0] instead of app.activeDocument when you use the afterOpen event.
This simple script adds a new page whenever a document is open. Written and tested on CS3, windows.
Kasyan
P.S. I just tested on CS5 - it works here as well, but it adds two pages instead of one for a reason any.
Tags: InDesign
Similar Questions
-
Run the Script on the Open Document event
OK so I know about the spectacle of afterOpen and I think I understand how to use it, however, I do not understand how to open to a specific document.
I don't want this script runs on all the documents that I opened, I would like to incorporate into a document and then run it whenever I open this document. Is this possible?
Maybe run the script in the script label?
Or I just put a script in the start Panel, and then create a session script that checks the name of each document open and then runs the script, if I have a match?
Thank you
As you chart put it in the startup scripts folder
//startup script #targetengine "session" main(); function main(){ var myEventListener = app.eventListeners.add("afterOpen", excuteScriptLabel); } function excuteScriptLabel(myEvent){ //The parent of the event is the document. var myDocument = myEvent.parent; if (myDocument.constructor.name == "Document") { if (myDocument.label != "") app.doScript(myDocument.label, ScriptLanguage.javascript); } }
Then try this line on a document and save it, and then open the same file and a few others, you will notice that this code only run on this document:
app.activeDocument.label = "alert (\"Yes\");";
-
AppleScript/Pages can not find the open document
This very simple script will not work:
Tell application "Pages".
activate
say the document before
name
tell the end
tell the end
All of this has to do is give the name of the opened document. It says: "cannot get document 1. Invalid index. "And, Yes, there is an open document.
This behavior deteriorated. He worked a few weeks ago and then become increasingly more broken. It's the same thing with the numbers.
That's happened? My Applescript is corrupt?
It works very well here:
tell application 'Pages' to return before the document name
And so for this:
say application 'Pages '.
say front document
name
end say
end say
With the keys v 5.6.1. OS X 10.11.1 (El Cap).
Make sure you have checked it in system preferences:
SG
-
How to remove all the images in the open documents
Hi, experts
How this script works out all the images in the open documents?
function re() {}
var link, image, image;
var openDocs = app.documents.
var openDocsLen = openDocs.length;
for (var d = 0; d < openDocsLen; d ++) {}
currDoc = openDocs [d],
Links = currDoc.links,.
counter = 0;
for (var i = links.length - 1; i > = 0; i--) {}
If (links [i] == docs.links) {}
try {}
link = links [i];
image = link.parent;
Frame = image.parent;
Frame.Remove ();
counter ++;
}
{} catch (err)
$.writeln (i + "-" + err);
}
}
}
}
}respect of
John
Dear John,
Try your code updated.
Re();
function re() {}
var link, image, image;
var openDocs = app.documents.
var openDocsLen = openDocs.length;
for (var d = 0; d)< opendocslen;="" d="">
currDoc = openDocs [d],
Links = currDoc.links,.
counter = 0;
for (var i = links.length - 1; I > = 0; i--) {}
If (links [i] .hasOwnProperty ('relink')) {}
try {}
link = links [i];
image = link.parent;
Frame = image.parent;
Frame.Remove ();
counter ++;
}
{} catch (err)
$.writeln (i + "-" + err);
}
}
}
}
}
Best regards,
K.Velprakash.
-
Running a script from the command line
Hi all
First of all, I'd like to say I'm just starting ORACLE 11 g with no prior experience of the database. I currently lectures once a week. However, I am stuck with a problem. I am trying to access my database of the United of the House so I can do some work, apparently I can only access it via the command prompt (which is good for me) I began by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home. However, I have a createHR.sql of script file that is stored in my C:\ORACLE directory which I try to access in order to load my test tables and start practicing with them.
use command line
SQL > C:\ORACLE\createHr and I get SP2-0310: unable to connect to the file "C:\ORACLE\create HR.sql".
normally, this should load and run the script - as with the browser method guests will get the tables is created and the test data.
I am now officially frustrated that I can't get any done practice, offered any help will be welcome.
Concerning
Claude
Published by: 891128 October 12, 2011 09:33
Published by: 891128 October 12, 2011 09:41
Published by: 891128 October 12, 2011 09:44891128 wrote:
I started by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home.
However, I have a createHR.sql of script file that is stored in my phonebook C:\ORACLEThese two sentences above are essential. If I had to bet a directory C:\ORACLE assumption is located locally on your laptop. However, it seems you have done a SSH connection to your server and connected to the database using SQL * more customer on the server. The client on the server has no idea or access to files on your machine.
You must open the script on your laptop and copy / paste into your SQL SSH * more session or you will need to find a way to copy this script on the server, so you can run it.
I hope this helps!
-
Run a script on the server side
someone at - not how to run a script out server php with him sending variables or receive all the variables and not to open a new window.
#2030 error: end of file was encountered. This is the error I get when you use this code
What is the file php is encode flv files. He calls him self saying that all videos uploaded in the database cue list are converted. So I have download 3 videos the script takes and makes the 1st file then 2nd, then 3rd. In the flash player I get error 2030 whenever the script call it is oneself.
If I call the script php outside of flash with a browser, it works perfectly.
I use all kinds of variations of URLRequest and URLLoader really puzzled. Thank you flexperts.
private function encodeHandler(event:DataEvent):void
{
var variables: URLVariables = new URLVariables();
variables.fileName = has ';
variables.fileExt = of ';
var request: URLRequest = new URLRequest ("""http://" " + ModelLocator.SERVER + ' / scripts/videoConvert.php"")
request.method = "get";
request.data = variables;
var loader: URLLoader = new URLLoader();
loader.dataFormat = can.
loader.addEventListener (Event.COMPLETE, completeHandler);
loader.addEventListener (flash.events.HTTPStatusEvent.HTTP_STATUS, onStatus);
try
{
//status.text = "video encoding".... » ;
loader.load (request);
trace() 'start encoding');
}
catch (error: error)
{
//status.text = "unable to load URL";
trace()"coding error cannot load url");
}
function onStatus(event:HTTPStatusEvent):void
{
If (event.status! = 0) {}
//status.text = "encoding error";
trace('encoding error');
}
}
function completeHandler(event:Event):void
{
//status.text = "complete encoding";
trace(() 'complete encoding');
}
}
Very well, please close this thread.
-
Looking to run a script when the form gets focus
Hello all flexers out there...
I have an application that uses a tab navigator control that is embedded inside a tab navigator control. Basically, it gives me two rows of browsers tab which is really cool. My problem, well my flex related question, is that I want to trigger a code when I select one of the tabs in the browser built-in tab control.
I tried to use the indicator of activation in the header tag but who does not have the first time the form is opened, more it will always fire when the browser loses focus. I tried the indicator initialization, but this event only fires when the form is created first and before all the data is passed to the form. The creationComplete triggers once and it was after that the form is created the first time, but before that any data sent to it.
Grrr... I need to initialize a few combo boxes, but I only want to run the Action Script when the form gets the focus and I need to have the data available before running the script. Any ideas?
Thanks in advance for the help!
Have an ordinary day...
KomputerMan ~ | :-)
Thanks for the tip of Tracy, but the change event fired off so many times, I stop counting until I killed my debugging session.
After reviewing all the events in the model itself, I finally started to recede in the code. It turned out that the show in the canvas that called the 2nd tab navigator works best.
There is one thing about Flex that makes me just batty. The way in which things are called and the number of times where things sometimes called in Flex doesn't make much sense at all. I think we should clean up the sequence of events in Adobe Flex! I keep seeing all kinds of events fire off several times and I can't understand why. Well the show solved this problem for me!
Have an ordinary day...
KomputerMan ~ | :-) -
Windows XP running startup scripts displays the taskbar?
Hi all
I have a newly installed Server 2003 domain.
I have also 2 machines that I have connected to the domain. One of them works very well (goes on the internet, readers of network etc.).
The other is does not work. It connects to the domain, reboot, then I log into the admin account. After that I did a gpupdate, and then restart the system.
The problem is, when the system starts up again, it seems to start to run startup scripts, then seems to automatically connect on a called user account $ media (Media is the name of the computer).
It displays the windows desktop and begins to run explorer.exe, with this user account (MEDIA$), with the start of the Running of scripts loading screen and does not get more.
(Both the Pc running Windows XP Professional SP3)
Any fix for that?
Hello
Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the forum TechNet for assistance:
http://TechNet.Microsoft.com/en-us/WindowsServer/bb512919
Hope the helps of information.
-
How can I run a script once the PC is booting and after I connect to my account?
Hi all
I'm using Vista, I want to run a script after that my PC is start and run script after I sign in to my account.
Can someone tell me how I can get there?
Thank you very much.
SF
Hello
You can try the suggestions of the link to find out how to assign scripts at startup:
Assign computer startup Scripts
http://TechNet.Microsoft.com/en-us/library/cc770556.aspx
Use startup, shutdown, logon, and Logoff Scripts
http://TechNet.Microsoft.com/en-us/library/cc753404.aspx
Reference: run a program automatically when Windows starts
http://Windows.Microsoft.com/en-us/Windows-Vista/run-a-program-automatically-when-Windows-starts
You can also post your query on the MSDN forum for assistance:
-
use Image catalog script for the current document
Is it possible to use the script to image catalogue for the current document in which we work instead of leaving the mark of script a new document fees for placed images?
use,
//ImageCatalog.jsx //An InDesign CS6 JavaScript /* @@@BUILDINFO@@@ "ImageCatalog.jsx" 3.0.0 15 December 2009 */ //Creates an image catalog from the graphic files in a selected folder. //Each file can be labeled with the file name, and the labels are placed on //a separate layer and formatted using a paragraph style ("label") you can //modify to change the appearance of the labels. // //For more information on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html //Or visit the InDesign Scripting User to User forum at http://www.adobeforums.com . // //The myExtensions array contains the extensions of the graphic file types you want //to include in the catalog. You can remove extensions from or add extensions to this list. //myExtensions is a global. Mac OS users should also look at the file types in the myFileFilter function. main(); function main(){ var myFilteredFiles; //Make certain that user interaction (display of dialogs, etc.) is turned on. app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll; myExtensions = [".jpg", ".jpeg", ".eps", ".ps", ".pdf", ".tif", ".tiff", ".gif", ".psd", ".ai"] //Display the folder browser. var myFolder = Folder.selectDialog("Select the folder containing the images", ""); //Get the path to the folder containing the files you want to place. if(myFolder != null){ if(File.fs == "Macintosh"){ myFilteredFiles = myMacOSFileFilter(myFolder); } else{ myFilteredFiles = myWinOSFileFilter(myFolder); } if(myFilteredFiles.length != 0){ myDisplayDialog(myFilteredFiles, myFolder); alert("Done!"); } } } //Windows version of the file filter. function myWinOSFileFilter(myFolder){ var myFiles = new Array; var myFilteredFiles = new Array; for(myExtensionCounter = 0; myExtensionCounter < myExtensions.length; myExtensionCounter++){ myExtension = myExtensions[myExtensionCounter]; myFiles = myFolder.getFiles("*"+ myExtension); if(myFiles.length != 0){ for(var myFileCounter = 0; myFileCounter < myFiles.length; myFileCounter++){ myFilteredFiles.push(myFiles[myFileCounter]); } } } return myFilteredFiles; } function myMacOSFileFilter(myFolder){ var myFilteredFiles = myFolder.getFiles(myFileFilter); return myFilteredFiles; } //Mac OS version of file filter //Have to provide a separate version because not all Mac OS users use file extensions //and/or file extensions are sometimes hidden by the Finder. function myFileFilter(myFile){ var myFileType = myFile.type; switch (myFileType){ case "JPEG": case "EPSF": case "PICT": case "TIFF": case "8BPS": case "GIFf": case "PDF ": return true; break; default: for(var myCounter = 0; myCounter
-1){ return true; break; } } } return false; } function myDisplayDialog(myFiles, myFolder){ var myLabelWidth = 112; var myStyleNames = myGetParagraphStyleNames(app); var myLayerNames = ["Layer 1", "Labels"]; var myDialog = app.dialogs.add({name:"Image Catalog"}); with(myDialog.dialogColumns.add()){ with(dialogRows.add()){ staticTexts.add({staticLabel:"Information:"}); } with(borderPanels.add()){ with(dialogColumns.add()){ with(dialogRows.add()){ staticTexts.add({staticLabel:"Source Folder:", minWidth:myLabelWidth}); staticTexts.add({staticLabel:myFolder.path + "/" + myFolder.name}); } with(dialogRows.add()){ staticTexts.add({staticLabel:"Number of Images:", minWidth:myLabelWidth}); staticTexts.add({staticLabel:myFiles.length + ""}); } } } with(dialogRows.add()){ staticTexts.add({staticLabel:"Options:"}); } with(borderPanels.add()){ with(dialogColumns.add()){ with(dialogRows.add()){ staticTexts.add({staticLabel:"Number of Rows:", minWidth:myLabelWidth}); var myNumberOfRowsField = integerEditboxes.add({editValue:3}); } with(dialogRows.add()){ staticTexts.add({staticLabel:"Number of Columns:", minWidth:myLabelWidth}); var myNumberOfColumnsField = integerEditboxes.add({editValue:3}); } with(dialogRows.add()){ staticTexts.add({staticLabel:"Horizontal Offset:", minWidth:myLabelWidth}); var myHorizontalOffsetField = measurementEditboxes.add({editValue:12, editUnits:MeasurementUnits.points}); } with(dialogRows.add()){ staticTexts.add({staticLabel:"Vertical Offset:", minWidth:myLabelWidth}); var myVerticalOffsetField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points}); } with (dialogRows.add()){ with(dialogColumns.add()){ staticTexts.add({staticLabel:"Fitting:", minWidth:myLabelWidth}); } with(dialogColumns.add()){ var myFitProportionalCheckbox = checkboxControls.add({staticLabel:"Proportional", checkedState:true}); var myFitCenterContentCheckbox = checkboxControls.add({staticLabel:"Center Content", checkedState:true}); var myFitFrameToContentCheckbox = checkboxControls.add({staticLabel:"Frame to Content", checkedState:true}); } } with(dialogRows.add()){ var myRemoveEmptyFramesCheckbox = checkboxControls.add({staticLabel:"Remove Empty Frames:", checkedState:true}); } } } with(dialogRows.add()){ staticTexts.add({staticLabel:""}); } var myLabelsGroup = enablingGroups.add({staticLabel:"Labels", checkedState:true}); with (myLabelsGroup){ with(dialogColumns.add()){ //Label type with(dialogRows.add()){ with(dialogColumns.add()){ staticTexts.add({staticLabel:"Label Type:", minWidth:myLabelWidth}); } with(dialogColumns.add()){ var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author"], selectedIndex:0}); } } //Text frame height with(dialogRows.add()){ with(dialogColumns.add()){ staticTexts.add({staticLabel:"Label Height:", minWidth:myLabelWidth}); } with(dialogColumns.add()){ var myLabelHeightField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points}); } } //Text frame offset with(dialogRows.add()){ with(dialogColumns.add()){ staticTexts.add({staticLabel:"Label Offset:", minWidth:myLabelWidth}); } with(dialogColumns.add()){ var myLabelOffsetField = measurementEditboxes.add({editValue:0, editUnits:MeasurementUnits.points}); } } //Style to apply with(dialogRows.add()){ with(dialogColumns.add()){ staticTexts.add({staticLabel:"Label Style:", minWidth:myLabelWidth}); } with(dialogColumns.add()){ var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0}); } } //Layer with(dialogRows.add()){ with(dialogColumns.add()){ staticTexts.add({staticLabel:"Layer:", minWidth:myLabelWidth}); } with(dialogColumns.add()){ var myLayerDropdown = dropdowns.add({stringList:myLayerNames, selectedIndex:0}); } } } } var myResult = myDialog.show(); if(myResult == true){ var myNumberOfRows = myNumberOfRowsField.editValue; var myNumberOfColumns = myNumberOfColumnsField.editValue; var myRemoveEmptyFrames = myRemoveEmptyFramesCheckbox.checkedState; var myFitProportional = myFitProportionalCheckbox.checkedState; var myFitCenterContent = myFitCenterContentCheckbox.checkedState; var myFitFrameToContent = myFitFrameToContentCheckbox.checkedState; var myHorizontalOffset = myHorizontalOffsetField.editValue; var myVerticalOffset = myVerticalOffsetField.editValue; var myMakeLabels = myLabelsGroup.checkedState; var myLabelType = myLabelTypeDropdown.selectedIndex; var myLabelHeight = myLabelHeightField.editValue; var myLabelOffset = myLabelOffsetField.editValue; var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex]; var myLayerName = myLayerNames[myLayerDropdown.selectedIndex]; myDialog.destroy(); myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myLayerName); } else{ myDialog.destroy(); } } } function myGetParagraphStyleNames(myDocument){ var myStyleNames = new Array; var myAddLabelStyle = true; for(var myCounter = 0; myCounter < myDocument.paragraphStyles.length; myCounter++){ myStyleNames.push(myDocument.paragraphStyles.item(myCounter).name); if (myDocument.paragraphStyles.item(myCounter).name == "Labels"){ myAddLabelStyle = false; } } if(myAddLabelStyle == true){ myStyleNames.push("Labels"); } return myStyleNames; } function myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myLayerName){ var myPage, myFile, myCounter, myX1, myY1, myX2, myY2, myRectangle, myLabelStyle, myLabelLayer; var myParagraphStyle, myError; var myFramesPerPage = myNumberOfRows * myNumberOfColumns; var myDocument = app.activeDocument; myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points; myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points; var myDocumentPreferences = myDocument.documentPreferences; var myNumberOfFrames = myFiles.length; var myNumberOfPages = Math.round(myNumberOfFrames / myFramesPerPage); if ((myNumberOfPages * myFramesPerPage) < myNumberOfFrames){ myNumberOfPages++; } //If myMakeLabels is true, then add the label style and layer if they do not already exist. if(myMakeLabels == true){ try{ myLabelLayer = myDocument.layers.item(myLayerName); //if the layer does not exist, trying to get the layer name will cause an error. myLabelLayer.name; } catch (myError){ myLabelLayer = myDocument.layers.add({name:myLayerName}); } //If the paragraph style does not exist, create it. try{ myParagraphStyle = myDocument.paragraphStyles.item(myLabelStyle); myParagraphStyle.name; } catch(myError){ myDocument.paragraphStyles.add({name:myLabelStyle}); } } myDocumentPreferences.pagesPerDocument = myNumberOfPages; myDocumentPreferences.facingPages = false; var myPage = myDocument.pages.item(0); var myMarginPreferences = myPage.marginPreferences; var myLeftMargin = myMarginPreferences.left; var myTopMargin = myMarginPreferences.top; var myRightMargin = myMarginPreferences.right; var myBottomMargin = myMarginPreferences.bottom; var myLiveWidth = (myDocumentPreferences.pageWidth - (myLeftMargin + myRightMargin)) + myHorizontalOffset var myLiveHeight = myDocumentPreferences.pageHeight - (myTopMargin + myBottomMargin) var myColumnWidth = myLiveWidth / myNumberOfColumns var myFrameWidth = myColumnWidth - myHorizontalOffset var myRowHeight = (myLiveHeight / myNumberOfRows) var myFrameHeight = myRowHeight - myVerticalOffset var myPages = myDocument.pages; // Construct the frames in reverse order. Don't laugh--this will // save us time later (when we place the graphics). for (myCounter = myDocument.pages.length-1; myCounter >= 0; myCounter--){ myPage = myPages.item(myCounter); for (var myRowCounter = myNumberOfRows; myRowCounter >= 1; myRowCounter--){ myY1 = myTopMargin + (myRowHeight * (myRowCounter-1)); myY2 = myY1 + myFrameHeight; for (var myColumnCounter = myNumberOfColumns; myColumnCounter >= 1; myColumnCounter--){ myX1 = myLeftMargin + (myColumnWidth * (myColumnCounter-1)); myX2 = myX1 + myFrameWidth; myRectangle = myPage.rectangles.add(myDocument.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:myDocument.swatches.item("None")}); } } } // Because we constructed the frames in reverse order, rectangle 1 // is the first rectangle on page 1, so we can simply iterate through // the rectangles, placing a file in each one in turn. myFiles = myFolder.Files; for (myCounter = 0; myCounter < myNumberOfFrames; myCounter++){ myFile = myFiles[myCounter]; myRectangle = myDocument.rectangles.item(myCounter); myRectangle.place(File(myFile)); myRectangle.label = myFile.fsName.toString(); //Apply fitting options as specified. if(myFitProportional){ myRectangle.fit(FitOptions.proportionally); } if(myFitCenterContent){ myRectangle.fit(FitOptions.centerContent); } if(myFitFrameToContent){ myRectangle.fit(FitOptions.frameToContent); } //Add the label, if necessary. if(myMakeLabels == true){ myAddLabel(myRectangle, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myLayerName); } } if (myRemoveEmptyFrames == 1){ for (var myCounter = myDocument.rectangles.length-1; myCounter >= 0;myCounter--){ if (myDocument.rectangles.item(myCounter).contentType == ContentType.unassigned){ myDocument.rectangles.item(myCounter).remove(); } else{ //As soon as you encounter a rectangle with content, exit the loop. break; } } } } //Function that adds the label. function myAddLabel(myFrame, myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, myLayerName){ var myDocument = app.documents.item(0); var myLabel; var myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName); var myLabelLayer = myDocument.layers.item(myLayerName); var myLink =myFrame.graphics.item(0).itemLink; //Label type defines the text that goes in the label. switch(myLabelType){ //File name case 0: myLabel = myLink.name; break; //File path case 1: myLabel = myLink.filePath; break; //XMP description case 2: try{ myLabel = myLink.linkXmp.description; if(myLabel.replace(/^\s*$/gi, "")==""){ throw myError; } } catch(myError){ myLabel = "No description available."; } break; //XMP author case 3: try{ myLabel = myLink.linkXmp.author if(myLabel.replace(/^\s*$/gi, "")==""){ throw myError; } } catch(myError){ myLabel = "No author available."; } break; } var myX1 = myFrame.geometricBounds[1]; var myY1 = myFrame.geometricBounds[2] + myLabelOffset; var myX2 = myFrame.geometricBounds[3]; var myY2 = myY1 + myLabelHeight; var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel}); myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset; myTextFrame.parentStory.texts.item(0).appliedParagraphStyle = myLabelStyle; } -
How to get the "Open Document" link
Dear friends,
I adapted a Notification of application based on the PL/SQL documents and workflow concepts.
I created the number of applications to test. Each request to have 3 people involved say A, B, C
One for presentation, two others for approval.
After approval of the person (B), it will go to c. up to now, everything works fine.
But in the list of person C of notification, the link titled 'Open Document' is missing to open the application.
What do I need TO CONFIGURE SOMETHING.
How to solve this problem. Any idea. Please share.
Let me know for any clarification.
Thank you
Aravinda.
Dear friends
It is resolved.
Just add purchase responsibility of the user to whom this 'open document link"is not visible in the notification.
Thank you
Aravinda.
-
InDesing cs5.5 is suspended shortly after opening, since the update to Mac osx Mountain Lion.
I have creative suite 5.5 and all the other apps work except indesign.
I can provide the error report if this can help.
any help would be much appreciated.
Thank you
See here
http://helpx.Adobe.com/InDesign/KB/hang-freeze-open-create-file.html
-
How to run a script using the OMB tcl
I'm trying to run a tcl script using the following syntax in cmd
D:\app\Username\product\11.1.0\db_2\owb\bin\win32 > ombplus.bat c:\t.tcl
and I get the error
OMB01001: Not connected to the repository.
The tcl script was basically accompanied by a tutorial and I can't continue the OWB tutorial, unless I run it firstDeparture ombplus.bat
You can then start the script with the source command such as
source C:/t.tcl
Be careful with the backslash (he is not C:\t.tcl)
You must also add a connection before your script to OWB with the OMBCONNECT
OMBCONNECT $UserLogin/$UserPassword@$DBHostName:$DBHostPort:$ServiceName USE REPOSITORY '$RepositoryUser' USE MULTIPLE_USER_MODE
Replace the parameters $ with your own value.
And then your script, you can disconnect:
OMBDISCONNECT
Success
NicoDocumentation is here for the 11g OMBCOMMAND
http://download.Oracle.com/docs/CD/B28359_01/OWB.111/b31279/TOC.htm -
Run the Script before the opening of Outlook 2010
We have a command to run to load an add-in in Outlook before you open it. Us thinapp Office and it works very well but we have to find a way to run the script once when they first open Outlook. Does anyone know a good way to do this? I got to the point where I created a shortcut under Office tools to run the script manually but I want it to be transparent to the user.
Basically, we need run the following command to load the add-in.
servername AppInstall.exe
Try using VB script. For examples, see here:
Writing scripts in ThinApp | VMware ThinApp Blog - Articles from VMware
-
Run a script with the command sudo bash
Hello
I'm trying to run a bash script with comments script Manager package. There is a sudo command in the script and he asks me problem.
First mistake is: sudo: Sorry, you must have a TTY to run sudo
So I tried to run the command sudo with ssh localhost sudo t t < command > but I get a new error (and even one): tcgetattr: Inappropriate ioctl for device
I don't know how to run as the root user is not allowed to connect.
So, launching a vCO sudo command really possible?
Thank you!
Sudo problem is quite easy to solve; "edit/etc/sudoers on the endpoint point ssh and then comment or delete the line"
Defaults requiretty". That should fix that right up. What command are you trying to run?
Maybe you are looking for
-
iPhone 6 + backup restore help!
I recently I forgot my access code to access my iPhone 6 +, & after too many attempts that I locked, as I kept trying it reset my iPhone with what looks like the factory settings. I want to backup my iPhone from the cloud on the same computer that I
-
HP Envy 15 Notebook PC TS: How to remove Trojan: Win32/Kovter.C reg for good
Hello For more than a week I get alerts with Windows Defender that my laptop is infected with the Trojan: Win32/Kovter.C reg. Whenever I choose to remove it, but he continues to show the Trojan horse after each successive scan. My Internet Explorer s
-
How doI change my E drive to the D drive designation without moving cables
I am setting up a Linksys network drive. Is it forces me to insert a blank diskinto my E drive. I have only a drive and D on this computer. How can I change my D drive to a designation of drive E without moving cables
-
How to put .pdf files to be opened with Adobe Acrobat Reader?
Original title: pdf download When I try to download a pdf file, it automatically tries to open it in Word and doing so in the code. All solutions? JO
-
Moving disc with right to vote in another diskgroup as root
HelloI moved the drive to vote in an another ASM diskgroup as ROOT user. After a few hours, one of the node has rebooted. After reading some documents, I see that we need to start with the user of network (we don't have any network user), in some for