Inspector filenames for MathType6 objects
At first I was very excited about creating MathType6 objects directly in Keynote -- until I see that the filename for every equation is reported in the Metrics Inspector as "temp.pict" (even though the object's actual filename is appended with a unique identifier inside the respective document's file). It's a nightmare trying to sequence builds on a slide with five or six equation objects when they all report the same name.
Am I going to have to first assemble all my equations in an external resource folder as individual files, then drag them onto my Keynote slide as needed so the Inspector will reflect different filenames for different equation instances?
Hi,
Presence of a TMP object doesnt necessarily mean that your code wont work in the destination environment. There a number of DDIC objects created by SAP which belongs to TMP package but is present in all environments in a landscape.
Hence there is no program to check for TMP objects within a code. The only way is to transport it and see if any objects have been missed out. After you transport, try checking the program for errors in the destination system, that will give you the first instance of such missing objects. I would suggest it move it from dev box to test box for the same.
Hope this is helpful.
Thanks
Mani
Similar Messages
-
Original filename for Smart Objects in CS6
After processing a camera raw image in ACR, I want to open the image in CS6 as a Smart Object.
Then I want to run a java script that depends on the original filename. Where in the metadata can I find the original filename?
Background: I have a script that executes very well if the file is opened in CS6 as a regular layer. However, when I open a file as a Smart Object, the script fails, complaining about an invalid filename.
The problem is associated with my favorite time-saving script and I am very keen to resolve the problem. :-(
Thank you for your assistance.
BArj acton wrote:
After processing a camera raw image in ACR, I want to open the image in CS6 as a Smart Object.
Then I want to run a java script that depends on the original filename. Where in the metadata can I find the original filename?
Background: I have a script that executes very well if the file is opened in CS6 as a regular layer. However, when I open a file as a Smart Object, the script fails, complaining about an invalid filename.
I think the the only reason it works when you open them as a regular layer is because of your work-flow and habits. Try opening it twice as a normal layer an see if it works.
When you open a RAW file through ACR as a normal layer and as a smart object layer there is no backing file associated with the open document yet. I feel you problem is you script is using something like the document name. If you look at the title in the image floating window or tab you will see that Photoshop has assigned a name the first time you open it as a normal layer you will see something like filename.cr2 @ 25% (RGB16) the second time you will see filename-2 @ 25% (RGB16) when you open as Object you will see filename as smart object-1 (filename, RGB16). These title will change when you save the document to a image file type the title will change to the associated backing file you just saved.
I you look at Photoshop File info you can see all the image metadata and you can find the RAWFileName you want here a text file I wrote using a Photoshop script
It is enev in small jpef file saved from raw conversions if you don't strip mete data
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.3-c011 66.145661, 2012/02/06-14:56:27 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:xmp="http://ns.adobe.com/xap/1.0/">
<xmp:ModifyDate>2010-08-16T22:47:35-04:00</xmp:ModifyDate>
<xmp:CreateDate>2009-04-25T15:20:46</xmp:CreateDate>
<xmp:Rating>0</xmp:Rating>
<xmp:MetadataDate>2010-08-16T22:47:35-04:00</xmp:MetadataDate>
<xmp:CreatorTool>Adobe Photoshop CS5 Windows</xmp:CreatorTool>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:format>image/jpeg</dc:format>
<dc:creator>
<rdf:Seq>
<rdf:li>McAssey</rdf:li>
</rdf:Seq>
</dc:creator>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:aux="http://ns.adobe.com/exif/1.0/aux/">
<aux:SerialNumber>237498</aux:SerialNumber>
<aux:LensInfo>300/1 300/1 0/0 0/0</aux:LensInfo>
<aux:Lens>300.0 mm</aux:Lens>
<aux:LensID>142</aux:LensID>
<aux:ImageNumber>48302</aux:ImageNumber>
<aux:FlashCompensation>0/1</aux:FlashCompensation>
<aux:OwnerName>McAssey</aux:OwnerName>
<aux:Firmware>1.2.3</aux:Firmware>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
<crs:RawFileName>LO2G5037.CR2</crs:RawFileName>
<crs:Version>6.1</crs:Version>
<crs:ProcessVersion>5.7</crs:ProcessVersion>
<crs:WhiteBalance>Custom</crs:WhiteBalance>
<crs:Temperature>5350</crs:Temperature>
<crs:Tint>-22</crs:Tint>
<crs:Exposure>0.00</crs:Exposure>
<crs:Shadows>5</crs:Shadows>
<crs:Brightness>+65</crs:Brightness>
<crs:Contrast>+25</crs:Contrast>
<crs:Saturation>0</crs:Saturation>
<crs:Sharpness>25</crs:Sharpness>
<crs:LuminanceSmoothing>0</crs:LuminanceSmoothing>
<crs:ColorNoiseReduction>0</crs:ColorNoiseReduction>
<crs:ChromaticAberrationR>0</crs:ChromaticAberrationR>
<crs:ChromaticAberrationB>0</crs:ChromaticAberrationB>
<crs:VignetteAmount>0</crs:VignetteAmount>
<crs:ShadowTint>0</crs:ShadowTint>
<crs:RedHue>0</crs:RedHue>
<crs:RedSaturation>0</crs:RedSaturation>
<crs:GreenHue>0</crs:GreenHue>
<crs:GreenSaturation>0</crs:GreenSaturation>
<crs:BlueHue>0</crs:BlueHue>
<crs:BlueSaturation>0</crs:BlueSaturation>
<crs:FillLight>0</crs:FillLight>
<crs:Vibrance>+21</crs:Vibrance>
<crs:HighlightRecovery>0</crs:HighlightRecovery>
<crs:Clarity>0</crs:Clarity>
<crs:Defringe>0</crs:Defringe>
<crs:HueAdjustmentRed>0</crs:HueAdjustmentRed>
<crs:HueAdjustmentOrange>0</crs:HueAdjustmentOrange>
<crs:HueAdjustmentYellow>0</crs:HueAdjustmentYellow>
<crs:HueAdjustmentGreen>0</crs:HueAdjustmentGreen>
<crs:HueAdjustmentAqua>0</crs:HueAdjustmentAqua>
<crs:HueAdjustmentBlue>0</crs:HueAdjustmentBlue>
<crs:HueAdjustmentPurple>0</crs:HueAdjustmentPurple>
<crs:HueAdjustmentMagenta>0</crs:HueAdjustmentMagenta>
<crs:SaturationAdjustmentRed>0</crs:SaturationAdjustmentRed>
<crs:SaturationAdjustmentOrange>0</crs:SaturationAdjustmentOrange>
<crs:SaturationAdjustmentYellow>0</crs:SaturationAdjustmentYellow>
<crs:SaturationAdjustmentGreen>0</crs:SaturationAdjustmentGreen>
<crs:SaturationAdjustmentAqua>0</crs:SaturationAdjustmentAqua>
<crs:SaturationAdjustmentBlue>0</crs:SaturationAdjustmentBlue>
<crs:SaturationAdjustmentPurple>0</crs:SaturationAdjustmentPurple>
<crs:SaturationAdjustmentMagenta>0</crs:SaturationAdjustmentMagenta>
<crs:LuminanceAdjustmentRed>0</crs:LuminanceAdjustmentRed>
<crs:LuminanceAdjustmentOrange>0</crs:LuminanceAdjustmentOrange>
<crs:LuminanceAdjustmentYellow>0</crs:LuminanceAdjustmentYellow>
<crs:LuminanceAdjustmentGreen>0</crs:LuminanceAdjustmentGreen>
<crs:LuminanceAdjustmentAqua>0</crs:LuminanceAdjustmentAqua>
<crs:LuminanceAdjustmentBlue>0</crs:LuminanceAdjustmentBlue>
<crs:LuminanceAdjustmentPurple>0</crs:LuminanceAdjustmentPurple>
<crs:LuminanceAdjustmentMagenta>0</crs:LuminanceAdjustmentMagenta>
<crs:SplitToningShadowHue>0</crs:SplitToningShadowHue>
<crs:SplitToningShadowSaturation>0</crs:SplitToningShadowSaturation>
<crs:SplitToningHighlightHue>0</crs:SplitToningHighlightHue>
<crs:SplitToningHighlightSaturation>0</crs:SplitToningHighlightSaturation>
<crs:SplitToningBalance>0</crs:SplitToningBalance>
<crs:ParametricShadows>-25</crs:ParametricShadows>
<crs:ParametricDarks>-13</crs:ParametricDarks>
<crs:ParametricLights>+13</crs:ParametricLights>
<crs:ParametricHighlights>+25</crs:ParametricHighlights>
<crs:ParametricShadowSplit>25</crs:ParametricShadowSplit>
<crs:ParametricMidtoneSplit>50</crs:ParametricMidtoneSplit>
<crs:ParametricHighlightSplit>75</crs:ParametricHighlightSplit>
<crs:SharpenRadius>+1.1</crs:SharpenRadius>
<crs:SharpenDetail>25</crs:SharpenDetail>
<crs:SharpenEdgeMasking>27</crs:SharpenEdgeMasking>
<crs:PostCropVignetteAmount>0</crs:PostCropVignetteAmount>
<crs:GrainAmount>0</crs:GrainAmount>
<crs:LensProfileEnable>0</crs:LensProfileEnable>
<crs:LensManualDistortionAmount>0</crs:LensManualDistortionAmount>
<crs:PerspectiveVertical>0</crs:PerspectiveVertical>
<crs:PerspectiveHorizontal>0</crs:PerspectiveHorizontal>
<crs:PerspectiveRotate>0.0</crs:PerspectiveRotate>
<crs:PerspectiveScale>100</crs:PerspectiveScale>
<crs:ConvertToGrayscale>False</crs:ConvertToGrayscale>
<crs:ToneCurveName>Strong Contrast</crs:ToneCurveName>
<crs:CameraProfile>Camera Faithful</crs:CameraProfile>
<crs:CameraProfileDigest>07AA307EAF63019A907C3A103EC361D0</crs:CameraProfileDigest>
<crs:LensProfileSetup>LensDefaults</crs:LensProfileSetup>
<crs:HasSettings>True</crs:HasSettings>
<crs:HasCrop>False</crs:HasCrop>
<crs:AlreadyApplied>True</crs:AlreadyApplied>
<crs:ToneCurve>
<rdf:Seq>
<rdf:li>0, 0</rdf:li>
<rdf:li>32, 16</rdf:li>
<rdf:li>64, 50</rdf:li>
<rdf:li>128, 128</rdf:li>
<rdf:li>192, 202</rdf:li>
<rdf:li>255, 255</rdf:li>
</rdf:Seq>
</crs:ToneCurve>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
<photoshop:DateCreated>2009-04-25T15:20:46</photoshop:DateCreated>
<photoshop:LegacyIPTCDigest>C919DE8C578CC777664AB2BCEBAFE2ED</photoshop:LegacyIPTCDigest>
<photoshop:ColorMode>3</photoshop:ColorMode>
<photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#">
<xmpMM:InstanceID>xmp.iid:53B401F530A9DF11A629E42CB0F33EB0</xmpMM:InstanceID>
<xmpMM:DocumentID>xmp.did:E719AF78E386DF1185EABAB6DC507A64</xmpMM:DocumentID>
<xmpMM:OriginalDocumentID>xmp.did:E719AF78E386DF1185EABAB6DC507A64</xmpMM:OriginalDocumentID>
<xmpMM:History>
<rdf:Seq>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:E719AF78E386DF1185EABAB6DC507A64</stEvt:instanceID>
<stEvt:when>2010-07-03T16:42:18-04:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>converted</stEvt:action>
<stEvt:parameters>from image/tiff to image/jpeg</stEvt:parameters>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>derived</stEvt:action>
<stEvt:parameters>converted from image/tiff to image/jpeg</stEvt:parameters>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:E819AF78E386DF1185EABAB6DC507A64</stEvt:instanceID>
<stEvt:when>2010-07-03T16:42:18-04:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:52B401F530A9DF11A629E42CB0F33EB0</stEvt:instanceID>
<stEvt:when>2010-08-16T22:47:35-04:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:53B401F530A9DF11A629E42CB0F33EB0</stEvt:instanceID>
<stEvt:when>2010-08-16T22:47:35-04:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
</rdf:Seq>
</xmpMM:History>
<xmpMM:DerivedFrom rdf:parseType="Resource">
<stRef:instanceID>xmp.iid:E719AF78E386DF1185EABAB6DC507A64</stRef:instanceID>
<stRef:documentID>xmp.did:E719AF78E386DF1185EABAB6DC507A64</stRef:documentID>
<stRef:originalDocumentID>xmp.did:E719AF78E386DF1185EABAB6DC507A64</stRef:originalDocumentID>
</xmpMM:DerivedFrom>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:tiff="http://ns.adobe.com/tiff/1.0/">
<tiff:ImageWidth>2336</tiff:ImageWidth>
<tiff:ImageLength>3504</tiff:ImageLength>
<tiff:BitsPerSample>
<rdf:Seq>
<rdf:li>8</rdf:li>
<rdf:li>8</rdf:li>
<rdf:li>8</rdf:li>
</rdf:Seq>
</tiff:BitsPerSample>
<tiff:PhotometricInterpretation>2</tiff:PhotometricInterpretation>
<tiff:Orientation>1</tiff:Orientation>
<tiff:SamplesPerPixel>3</tiff:SamplesPerPixel>
<tiff:XResolution>2400000/10000</tiff:XResolution>
<tiff:YResolution>2400000/10000</tiff:YResolution>
<tiff:ResolutionUnit>2</tiff:ResolutionUnit>
<tiff:Make>Canon</tiff:Make>
<tiff:Model>Canon EOS-1D Mark II</tiff:Model>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:exif="http://ns.adobe.com/exif/1.0/">
<exif:ExifVersion>0221</exif:ExifVersion>
<exif:ColorSpace>1</exif:ColorSpace>
<exif:PixelXDimension>400</exif:PixelXDimension>
<exif:PixelYDimension>600</exif:PixelYDimension>
<exif:DateTimeOriginal>2009-04-25T15:20:46</exif:DateTimeOriginal>
<exif:ExposureTime>1/1000</exif:ExposureTime>
<exif:FNumber>56/10</exif:FNumber>
<exif:ExposureProgram>2</exif:ExposureProgram>
<exif:ISOSpeedRatings>
<rdf:Seq>
<rdf:li>800</rdf:li>
</rdf:Seq>
</exif:ISOSpeedRatings>
<exif:ShutterSpeedValue>9965784/1000000</exif:ShutterSpeedValue>
<exif:ApertureValue>4970854/1000000</exif:ApertureValue>
<exif:ExposureBiasValue>0/1</exif:ExposureBiasValue>
<exif:MaxApertureValue>3/1</exif:MaxApertureValue>
<exif:MeteringMode>5</exif:MeteringMode>
<exif:Flash rdf:parseType="Resource">
<exif:Fired>False</exif:Fired>
<exif:Return>0</exif:Return>
<exif:Mode>2</exif:Mode>
<exif:Function>False</exif:Function>
<exif:RedEyeMode>False</exif:RedEyeMode>
</exif:Flash>
<exif:FocalLength>300/1</exif:FocalLength>
<exif:FocalPlaneXResolution>3520000/1136</exif:FocalPlaneXResolution>
<exif:FocalPlaneYResolution>2342000/756</exif:FocalPlaneYResolution>
<exif:FocalPlaneResolutionUnit>2</exif:FocalPlaneResolutionUnit>
<exif:CustomRendered>0</exif:CustomRendered>
<exif:ExposureMode>0</exif:ExposureMode>
<exif:WhiteBalance>0</exif:WhiteBalance>
<exif:SceneCaptureType>0</exif:SceneCaptureType>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta> -
HOW TO: set anchoredObjectSettings for .palce() object?
Hi, I'm currently working on interesting script for GREP placing, and I'm wondering how I can set anchoredObjectSettings for .palce() object?
for(i=0; i < found.length; i++)
foundElem = new File (myFolder + "/" + found[i].contents);
found[i].place(foundElem); // Placing Ancored Object
// HERE IS WHERE I NEED SOME HELP: how to set "anchoredObjectSettings" for just placed Ancored Object
//anchoredObjectSettings.anchoredPosition = AnchorPosition.ABOVE_LINE;
//anchoredObjectSettings.horizontalAlignment = HorizontalAlignment.TEXT_ALIGN;
Here you can download example files - script, InDesign file and images, that should be placed into InDesign file with script
Dropbox - GREP placing.zip
PS: I believe this script will be very useful, so if anybody have any ideas/suggestions, and want to help me with further development - this would be great!Hi Kai, this script is still under development, here is updated version attached (now it can also place files/images by file name only, without extension):
#target indesign;
//#include "! Basic functions.jsx"
GREP place files.
This script will ask to select source folder with files to place,
and then, with dialog box (or prompt) [this is not implemented yet, so I use static GREP value while developing]
will ask to type GREP find expresion to search for text placeholder, that need to be replaced with file from source folder we just selected.
TODO: Check how it works with other than image formats
Also, this might be usefull to make anchored frame with column widh, and fit image proportionally
scriptName = decodeURI(File(app.activeScript).name.slice(0, -4)); // detect name of current script without expression
function Alert(msg) // function for native-looking alerts
w = new Window ("dialog", scriptName, undefined, {closeButton: true});
w.preferredSize = [300,75]; // window width and height
w.margins = 15; // window margins
w.orientation = "column";
w.alignChildren = ["left", "top"];
w.add("statictext", undefined, msg);
close = w.add ("button", [0,0,96,20], "OK", {name: "Ok"});
close.alignment = ["right", "bottom"];
close.onClick = function(){exit();}
w.show();
main();
function main()
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
if(app.documents.length == 0)
Alert("No documents are open. Please open a document and try again."); exit();
else
//> START OF doUndoWraper
if (parseFloat(app.version) < 6) // "app.version < 6" if it's running under an earlier version than CS4, as earlier versions don't support "Undo" in scripts
doUndoWrapper();
else
app.doScript(doUndoWrapper, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, scriptName);
//< END OF doUnoWraper
function doUndoWrapper() // this is the wraper function UNDO everything script made by single undo
{// START OF doUndoWrapper
defaultGREPexpression = "(?i)^[a-z0-9 _-]+\\.\\w{2,4}$"; // Paragraph that starts with upper or lower case latin character, digits, spaces, hyphen or underscore, and ends with .extension
var myFilteredFiles;
var myExtensions = []; // initialize array
myExtensions.push(".jpg", ".jpeg", ".png", ".gif"); // raster images
myExtensions.push(".psd", ".tif", ".tiff", ".pdf"); // raster images (layered)
myExtensions.push(".ai", ".eps", ".svg", ".cdr"); // vector graphics
myExtensions.push(".mp3"); // audio files
myExtensions.push(".mp4"); // video files
myExtensions.push(".swf"); // flash files
myExtensions.push(".doc", ".docx", ".rtf", ".txt"); // text documents
myExtensions.push(".xls", ".xlsx"); // table documents
//Display the folder browser.
if(app.activeDocument.saved) // our document was saved before - we suggest to start search for source folder from were InDesign file saved
var myFolder = Folder(app.activeDocument.filePath).selectDlg("Select the source folder with files for placing", "");
else // file was not saved before, so we don't know where to search > suggest to start from Desktop
var myFolder = Folder.selectDialog("Select the source folder with files for placing", "");
if(myFolder) // if folder was selected
//Get the path to the folder containing the files you want to place.
var files = new Object(); // This will assoc array with FILE_NAME => FILE_EXTENSION
if(File.fs == "Macintosh")
myFilteredFiles = myMacOSFileFilter(myFolder);
else
myFilteredFiles = myWinOSFileFilter(myFolder);
if(myFilteredFiles.length != 0) // success: we have found supported files to place
for(i = 0; i < myFilteredFiles.length; i++)
var filename = myFilteredFiles[i].fsName.toString().replace(/^.*[\\\/]/, ""); // now we get only file names with extenstions
var file = [];
file = filename.split("."); // separate file name from file extension
files[file[0]] = file[1]; // write FILE_NAME => FILE_EXTENSION as assoc array
else // error: There is no supported files for placing in specified folder
Alert("ERROR: There is no supported files for placing in specified folder.");
exit();
else // ERROR: we have not choose source folder
Alert("Folder with source files was not specified"); exit();
//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<myExtensions.length; myCounter++)
var myExtension = myExtensions[myCounter];
if(myFile.name.indexOf(myExtension)>-1)
return true;
break;
return false;
//> START OF GREP expression dialog
w = new Window ("dialog", scriptName+": specify expression", undefined, {closeButton: true});
w.preferredSize = [300,75]; // window width and height
w.margins = 15; // window margins
w.orientation = "column";
w.alignChildren = ["left", "top"];
panel = w.add("panel", undefined, "Find what: (GREP expression)");
if(app.findGrepPreferences.findWhat != "")
grepExpression = app.findGrepPreferences.findWhat;
clearFindWhat = false;
else
grepExpression = defaultGREPexpression; // use default GREP expression
//fgrepExpression = "\\[.+\\]"; // \\< means "begining of the world", and \\> means end of the world;
clearFindWhat = true;
var grepExpression = panel.add ("edittext", [0,0,270,20], grepExpression);
grepExpression.active = true;
panel.add("statictext", undefined, "GREP expression no need for for double \\\\ escaping");
ok = w.add ("button", [0,0,96,20], "Continue", {name: "Ok"});
ok.alignment = ["right", "bottom"];
ok.onClick = function()
findWhat = grepExpression.text;
w.hide();
w.show();
//< END OF GREP expression dialog
if(typeof findWhat !== "undefined") // check we have not left GREP expression field empy
app.findGrepPreferences.findWhat = findWhat; // our GREP that search for image placeholder text;
found = app.activeDocument.findGrep();
for(i=0; i < found.length; i++)
if(found[i].contents.indexOf(".") > -1) // we wroking with file name with extension
foundElem = new File (myFolder + "/" + found[i].contents);
else // we work with file name only, so we need to add file extension manually
found[i].contents = found[i].contents.replace(/[^a-z0-9 _-]/gi, ""); // remove all unwanted characters from file name: only letters, numbers, spcaces, minus and underscores allowed
foundElem = new File (myFolder + "/" + found[i].contents + "." + files[found[i].contents]);
try
placedObj = found[i].place(foundElem)[0].parent; // THANKS TO: Jump_Over for help @ https://forums.adobe.com/message/6912489#6912489
placedObj.anchoredObjectSettings.anchoredPosition = AnchorPosition.ABOVE_LINE;
placedObj.anchoredObjectSettings.horizontalAlignment = HorizontalAlignment.TEXT_ALIGN;
placedObj.frameFittingOptions.autoFit = true;
placedObj.frameFittingOptions.fittingOnEmptyFrame = EmptyFrameFittingOptions.FILL_PROPORTIONALLY;
placedObj.frameFittingOptions.fittingAlignment = AnchorPoint.CENTER_ANCHOR;
catch(e)
Alert(e);
app.changeGrepPreferences.changeTo = "";
app.activeDocument.changeGrep();
if(clearFindWhat) // clearing only if typed GREP expression manually
app.findGrepPreferences = app.changeGrepPreferences = null; // clear Find/Change preferences once we finished
else
Alert("Find what GREP expression was not specified"); exit();
}// END OF doUndoWrapper
Top part with Windows/Mac filtering was copy-pasted from default InDeign script "ImageCatalog.jsx" as example and modified - I'm not sure if all this stuff is needed, I haven't test if it works the same without those filtering on both OS - if that's not needed - then thanks for tip!
PS: in your findWhat \l{3,4} will not catch .ai files
and what means .source at the end? is that doing necessary escaping, so with it it's posible to write \l instead of \\l -
Infospoke - How to single Logical Filename for all infospokes
Hello all,
I want to only have one logical path and logical filename for all of my infospokes.
For example if I have infospokes ZAAA, ZBBB, ZCCC, I want to have only one common setting in the destination properties of TC:RSBO but three different distinguishable files on my OS.
I think with the standard settings, I have to make one logical file for every infospoke I have.
I am aware that I can put <DATE> or <TIME> etc in the logical file settings but that will not distinguish which infospoke the file came from.
I want my file to look more like <INFOSPOKE>_<DATE><TIME>.csv
I've already seen the document "How to Extract Data with OPEN HUB to a Logical Filename" and this is not it because I have BW3.5 and 3.5 already does what this article says.
Any help would be greatly appreciated.
Just in case, I am on BW3.5 SP17 on Windows/SQL.Jasprit,
Thanks for your input.
The functionality of the FM you said is similar to the InfoSpoke functionality...
Is it the same thing?
I wonder if I use this it means it is not part of the InfoSpoke license...
I will have our programer look at it and see what he thinks but in the mean time any other information is greatly appreciated. Especially if I can stick with using the standard InfoSpoke functionality...
Isn't this kind of functionality something that everyone wants?
I wonder why SAP didn't make it like this? -
allison.moore
Any plans for adding following objects under Bulk API V2.0 for data extraction from Eloqua. Extracting the data using the REST API for these objects makes it complicated.Thanks for quick response. Extracting these objects using REST API in depth=Complete poses lots of complication from the code perspective since these object(s) contains multiple nested or embedded objects within it. is there any guideline on how to extract these objects using REST so that we can get all the data which is required for analysis/reporting.
-
Exporting and Importing Statistics for Schema objects.
Hello All,
I am trying to gather stats for optimization using, gather_schema_stats for all objects under schema. The manual what i am reading says it covers both Tables and Indexes and we can also include the all partions too. For the safety reasons i was informed by a friend that we should take a back up of old stats into a table (user defined), so as in case of messing up with new stats for performance issue we can use it as an backup copy. So, i have created a user table and exported the stats from existing schema. My Question is, do i have to create one for the indexes too. Or its all in one table. I hope my question is clear.
Generally manuals don't teach all this kind of stuff until unless we learn it by ourselves by trial and error Or getting solutions from great resolvers like you people.
Hope to hear soon.
Thanks in Advance.One table for table and indexes stats is enough, a little test for you :
SCOTT@demo102> exec DBMS_STATS.CREATE_STAT_TABLE('SCOTT','MYTBL');
PL/SQL procedure successfully completed.
SCOTT@demo102> desc mytbl
Name Null? Type
STATID VARCHAR2(30)
TYPE CHAR(1)
VERSION NUMBER
FLAGS NUMBER
C1 VARCHAR2(30)
C2 VARCHAR2(30)
C3 VARCHAR2(30)
C4 VARCHAR2(30)
C5 VARCHAR2(30)
N1 NUMBER
N2 NUMBER
N3 NUMBER
N4 NUMBER
N5 NUMBER
N6 NUMBER
N7 NUMBER
N8 NUMBER
N9 NUMBER
N10 NUMBER
N11 NUMBER
N12 NUMBER
D1 DATE
R1 RAW(32)
R2 RAW(32)
CH1 VARCHAR2(1000)
SCOTT@demo102> create table mytable_obj as select * from all_objects;
Table created.
SCOTT@demo102> create index myindex on mytable_obj(object_id);
Index created.
SCOTT@demo102> exec dbms_stats.gather_table_stats(ownname=>'SCOTT',tabname=>'MYTABLE_OBJ',cascade=>true);
PL/SQL procedure successfully completed.
SCOTT@demo102> select last_analyzed from all_tables where table_name='MYTABLE_OBJ';
07/06/06
SCOTT@demo102> select last_analyzed from all_indexes where table_name='MYTABLE_OBJ';
07/06/06
SCOTT@demo102> exec dbms_stats.export_table_stats('SCOTT','MYTABLE_OBJ',stattab=>'MYTBL')
PL/SQL procedure successfully completed.
SCOTT@demo102> exec dbms_stats.delete_table_stats('SCOTT','MYTABLE_OBJ');
PL/SQL procedure successfully completed.
SCOTT@demo102> select last_analyzed from all_tables where table_name='MYTABLE_OBJ';
-->No value
SCOTT@demo102> select last_analyzed from all_indexes where table_name='MYTABLE_OBJ';
-->No value
SCOTT@demo102> exec dbms_stats.import_table_stats('SCOTT','MYTABLE_OBJ',stattab=>'MYTBL');
PL/SQL procedure successfully completed.
SCOTT@demo102> select last_analyzed from all_tables where table_name='MYTABLE_OBJ';
07/06/06
SCOTT@demo102> select last_analyzed from all_indexes where table_name='MYTABLE_OBJ';
07/06/06
SCOTT@demo102> Nicolas. -
How to use the index method for pathpoints object in illustrator through javascripts
hii...
am using Illustrator CS2 using javascripts...
how to use the index method for pathpoints object in illustrator through javascripts..Hi, what are you trying to do with path points?
CarlosCanto -
How to set change mode as default for workbench objects
Hi experts
I've always wondered if there is a configuration option in NW BW 7 where it can be set whether double clicking a workbench object will show the maintenance screen for that object in change or display mode (default is display). Because is annoying to have to set edit mode every time one double click a workbench object in the development system, and as it is a development system, it would make sense to have edit mode by default instead of display
I was thinking that it may be related to the client role, but who knows...
I appreciate your help
regardsNot sure where this can be set...if anywhere.
But how about this for a workaround: Right click the object in RSA1 and the select Change instead of Display.
That would save you a click if I counted correctly -
How to build sql query for view object at run time
Hi,
I have a LOV on my form that is created from a view object.
View object is read-only and is created from a SQL query.
SQL query consists of few input parameters and table joins.
My scenario is such that if input parameters are passed, i have to join extra tables, otherwise, only one table can fetch the results I need.
Can anyone please suggest, how I can solve this? I want to build the query for view object at run time based on the values passed to input parameters.
Thanks
Srikanth AddankiAs I understand you want to change the query at run time.
If this is what you want, you can use setQuery Method then use executeQuery.
http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/oracle/jbo/server/ViewObjectImpl.html#setQuery_java_lang_String_ -
How to find multiple transport requests for one object
Hi all,
Is there any function module which will fetches multiple transport requests ( if created ) for one object.I tried almost all the function modules , but i didn't got the solution.
I need to develop a report , which will takes a single Task number as input and gets the Request number from table E070.
Based on that Request Number i will fetch remaining Task numbers under it.
Then for all the Tasks Numbers, i am fetching their objects by using table E071.
I need to list out whether any of these objects are in multiple Transport Requests. Once i got all the Transport Request numbers i need to release the Request based on their Transport Request sequence.
I tried the following FM's , but not able to get the solution.
SVRS_DISPLAY_VERSION_LIST
SVRS_GET_VERSION_DIRECTORY_46
SVRS_GATHER_REQUEST_FRAGS
Thanks..Hello
I have tried with below code
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT RSWBO040 USING SELECTION-SET 'TEST'
EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
break-point.
Submitting the program(RSWBO040) of SE03 transaction a will result in 'CNTL_ERROR' dump.
Please try some other options
Thanks -
I don't know if this can be done with VI Logger or need to use Labview V7.1.
After browsing through the VI Logger User Manual, it looks like the triggering that you are hoping to accomplish is possible. However, incrementing the filename for the next logging event is not going to be possible. VI Logger does exactly what its name tells - logs data. I don't think the automation that you are hoping to accomplish is possible.
For help with setting up your application, if you do choose to stay with VI Logger, make sure to chek out the Getting Started with VI Logger Manual.
Best of luck.
Jared A -
"E_PACK_ERROR: illegal filename for a PUT" Error in Packaging a PDF file
Hi Jim,
As per ContentServer_Technical_Reference.pdf (page no 9) I passed <filename>, <location> and <src> parameter in our packaging request xml. File is packaging successfully and service is also placing the encrypted file to new location listed in <location> but following error is comming:
<error xmlns="http://ns.adobe.com/adept"
data="E_PACK_ERROR http://myserverurl/packaging/Package illegal%20filename%20for%20a%20PUT"/>
My Packaging XML:
<package xmlns="http://ns.adobe.com/adept" action="add">
<fileName>9781591439745.pdf</fileName>
<location>ftp://username:password@myserverurl/www/folder/9781591439745.pdf</location>
<src>http://myserverurl/folder/9781591439745.pdf</src>
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>9781591439745</dc:title>
<dc:creator>Nicolya Christi</dc:creator>
<dc:format>application/pdf</dc:format>
<dc:publisher>Work Disribution System</dc:publisher>
<dc:language>en</dc:language></metadata>
<permissions><display/><excerpt/></permissions>
<dataPath>C:/folder/9781591439745.pdf</dataPath>
<expiration>2011-03-02T15:18:02+05:30</expiration>
<nonce>LTIyNzc1Mjk4</nonce>
</package>
Please suggest me why the "E_PACK_ERROR http://myserverurl/packaging/Package illegal%20filename%20for%20a%20PUT" error is comming.
I am waiting your reply...
With regards,
Mangal VarshneyHello Jim,
I tried as you suggest not to use all three, filename, location and src. I removed the <filename> parameter from packaging xml and then try to package the same error are comming again. Jim this same code was working earlier, we are using same on our production sever till now but suddenly it stop working.
"E_PACK_ERROR: illegal filename for a PUT"
I checked the packaging.log file, the log message are:
02 Mar 2011 05:41:56,673 TRACE AdeptServlet: request POST http://myserverurl/packaging/Package
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: Open jdbc:mysql://127.0.0.1:3306/adept with user=dmr_mysql_dba
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: SELECT distid, name, description, disturl, notifyurl, publickey, sharedsecret, maxloancount, linkexpiration FROM distributor WHERE distid = ?
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: rollback
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: SELECT distid, nonce, expiration FROM distusednonce WHERE distid = ? AND nonce = ?
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 2 = [B@6c2a78
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: INSERT INTO distusednonce(distid, nonce, expiration) VALUES(?, ?, ?)
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 1 = 00000000-0000-0000-0000-000000000001
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 2 = [B@6c2a78
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 3 = Wed Mar 02 06:41:56 CST 2011
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: DELETE FROM distusednonce WHERE expiration < ? AND distid = ? AND nonce = ?
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 1 = Wed Mar 02 05:41:56 CST 2011
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 2 = 00000000-0000-0000-0000-000000000001
02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: obj 3 = [B@6c2a78
02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection: SELECT resourceid, item, description, title, publisher, creator, language, identifier, thumbnailurl, format, src, downloadtype FROM resourceitem WHERE src = ? AND downloadtype = ?
02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection: obj 1 = http://myserver2url/folder/9781591439745.pdf
02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection: obj 2 = simple
02 Mar 2011 05:41:56,876 ERROR Package: Error in packaging
java.io.IOException: illegal filename for a PUT
at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
at com.adobe.adept.packaging.servlet.Package.aquireLocationStream(Package.java:359)
at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:535)
at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:43)
at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Unknown Source)
02 Mar 2011 05:41:56,876 TRACE DefaultSQLDatabaseConnection: rollback
02 Mar 2011 05:41:56,907 ERROR AdeptServlet: request error [myip]: E_PACK_ERROR http://myserverurl/packaging/Package illegal+filename+for+a+PUT
02 Mar 2011 05:41:56,907 TRACE AdeptServlet: request end http://myserverurl/packaging/Package
Please debug the above message and suggest me what i will do to rectify this issue.
With Ragards,
Mangal Kumar -
Text ID for text object MATERIAL does not exist - MM01
Hi All,
I am getting below error message when trying to save Material Master in MM01.
Text ID for text object MATERIAL does not exist
Message no. TD603
Diagnosis
You want to edit a text. However, the text ID (text type) of the specified text object does not exist.
Procedure
You can display a list of valid text IDs (text types) using F4=Possible entries. You can select the required text ID from this list with F2 or a double click.
The valid text objects are listed in table TTXOB. The valid text IDs (text types) for an object are specified in table TTXID.
I have searched the forums but couldn't get relevant message.
Please assist.
Thanks,
RajHi Jurgen,
This is the complete message i am getting.
Text ID for text object MATERIAL does not exist
Message no. TD603
Diagnosis
You want to edit a text. However, the text ID (text type) of the specified text object does not exist.
Procedure
You can display a list of valid text IDs (text types) using F4=Possible entries. You can select the required text ID from this list with F2 or a double click.
The valid text objects are listed in table TTXOB. The valid text IDs (text types) for an object are specified in table TTXID.
If I enter MM02 and without changing anything if i save still i get this error message.
Thanks & Regards,
Raj -
Text ID for text object BUT000 does not exist
Hi Experts.
I am doing data migration using LSMW with IDoc. I have this error message "Text ID for text object BUT000 does not exist" when processing the IDoc.
Can anyone tell me what is this error about and how could i fix it. A step by step guide would be nice. Really need advice urgently.
I'll definitely rewards points.
Regards,
Juliannafor this u need to maintain the text object and its related text id using the TC: SM31 in rel. view of ur tcode( like MM01, Va01 etc).
first get the view names(1 for text object and 2 for text id) from fun. people.
then go to sm31 with 1 view, create BUT000 .
then go to sm31 with 2 view, maintain text id for the text object:BUT000. -
Table creation Error "Ref Count for this object is higher than 0"
Hi All
I have a problem in creation of table using SDK on a button event. I have a procedure to create tables and fields. If I call this procedure on a menu Event than it works fine but If I call this procedure on a button event than It gives error "Ref count for this object is higher than 0" . I know this error occur When an object does not release after creating a table. but this error occur at when first table is created. My code it given below. plz see and give me your valuable suggestions.
Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
Try
oUserTablesMD = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUserTablesMD.TableName = "AM_OBIN"
oUserTablesMD.TableDescription = "PutAway Table"
oUserTablesMD.TableType = BoUTBTableType.bott_Document
lRetCode = oUserTablesMD.Add
'// check for errors in the process
If lRetCode <> 0 Then
B1Connections.diCompany.GetLastError(lRetCode, sErrMsg)
MsgBox(sErrMsg)
Else
B1Connections.theAppl.StatusBar.SetText("Table: " & oUserTablesMD.TableName & " was added successfully", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
oUserTablesMD = Nothing
GC.Collect()
oUserTablesMD = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUserTablesMD.TableName = "AM_BIN1"
oUserTablesMD.TableDescription = "PutAway Upper Grid"
oUserTablesMD.TableType = BoUTBTableType.bott_DocumentLines
lRetCode = oUserTablesMD.Add
'// check for errors in the process
If lRetCode <> 0 Then
If lRetCode = -1 Then
Else
B1Connections.diCompany.GetLastError(lRetCode, sErrMsg)
MsgBox(sErrMsg)
End If
Else
B1Connections.theAppl.StatusBar.SetText("Table: " & oUserTablesMD.TableName & " was added successfully", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
oUserTablesMD = Nothing
GC.Collect()
Catch ex As Exception
MsgBox(ex.Message)
End Try
Thanks
Regards
GorgeHi Gorge,
The "Ref count error..." usually occurs in case of Meta Data objects not being properly cleared. And yes, you have got the error in the right place, generally while creating tables / fields / UDOs. For this, you just need to clear the Meta Data object (At times even DI objects like Record Set) once they are used.
Eg: Release these objects in the below way in a Finally Block.
System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecordSet);
Hope this helps.
Regards,
Satish
Maybe you are looking for
-
My brother and I phone number is link together on the same iTunes and Icloud therefore I am getting all his text messages on my phone, how do I stop this? He does not even have an Iphone anymore.
-
I can't get my scanner (epson expression 10000xl) to show up in my printer and scanner dialog box. It was there initially when I first installed it but now only my printer shows up. I have a scanner icon in the dock but when I press that the printer
-
10g: still no whoami or linenum functions, sigh.
It is a fairly well-known fact that PL/SQL lacks the ability to introspect and report on itself, items of great interest when logging and debugging, like: whoami: satisfies "what is my name?" - expecting function, procedure, package.proc/func, or typ
-
Downloadidng adobe photoshop elements 11
I purchased photoshop elements 11 & adobe premier elements 11 in a high street store. Adobe.com appears to only allow the downloading of software purchased in the online store. Tips please on how I can download my purchase which has been registered
-
Dataguard archivelog transmission
Hello When primary redo is generated, it is written to standby redologs on standby server and when the standby redolog is filled, it has been archived hence archivelogs are generated on standby server. How about in dataguard configurations which ther