Display the path of the folder chosen as statictext
Hi all
I'm trying to display a path to the folder chosen in static text. But it does not update the text.
According to this the text property must be r/w...
Can you see what I'm doing wrong?
var myWindow is new window ("dialog", "Output Window");.
myWindow.orientation = "column";
myDocument = null;
myDocument = app.activeDocument;
var myDocName = myDocument.name;
myDocName = myDocName.replace ('.indd' ");
var myOutputPath;
var myDecodedOutputPath;
Try
{
myOutputPath = app.activeDocument.filePath;
myDecodedOutputPath = Folder.decode (myOutputPath);
}
catch (e)
{
myOutputPath is Folder.selectDialog ("select a file");.
myDecodedOutputPath = Folder.decode (myOutputPath);
}
var myGroup = myWindow.add ('group');
myGroup.orientation = "column";
myGroup.alignChildren = 'left ';
var myButtonGroup = myWindow.add ('group');
myWindow.outputPathTextLabel = myGroup.add ("statictext', undefined, ' :'); saving location")
myWindow.outputPath = myGroup.add ("statictext', undefined, myDecodedOutputPath");
myWindow.changeSaveLocationButton = myGroup.add ('button', undefined, "Change the location save");
CHANGE THE SAVE LOCATION WHEN THE BUTTON IS CLICKED
myWindow.changeSaveLocationButton.onClick = function()
{
myOutputPath is Folder.selectDialog ("select a file");.
myDecodedOutputPath = Folder.decode (myOutputPath);
myWindow.outputPath.text = myDecodedOutputPath;
Alert (myDecodedOutputPath);
}
myWindow.buttonOK = myButtonGroup.add ('button', [0,0,150,20], "Cancel");
myWindow.buttonCancel = myButtonGroup.add ('button', [0,0,150,20], "OK");
shownWindow = myWindow.show ();
Thank you!
Hello
Set the maximum size for statictext
myWindow.outputPath = myGroup.add ("statictext', [0,0,300,20], myDecodedOutputPath");
Tags: InDesign
Similar Questions
-
Display the folder Manager followed by employees who report to that Manager.
Hi friends,
After a long time, I guess.
I need your ideas on how to perform the tasks below.
I have 2 tables as below:
(1) BISHOP
mgr_id (pk), mgr_name
(2) EMP
emp_id (PK), ename, mgr_id (fk)
mgr_id is the key referential in this case.
Now, all I want is first display mgr_id, mgr_name and then display the employees to this Manager.
Thanks in advance.MGR TABLE ========= MGR_ID MGR_NAME ------ --------- 1 David 2 Ray EMP TABLE ========= EMP_ID ENAME MGR_ID ------ ------ ------ 1001 John 1 1002 Nancy 1 1003 Edward 2 1004 Jack 2 QUERY RESULTS ============= TYPE ID NAME ---- ---- ------ Manager 1 David Employee 1001 John Employee 1002 Nancy Manager 2 Ray Employee 1003 Edward Employee 1004 Jack
-Raj
Published by: Teku on April 20, 2009 12:04Hi, Raj,
Do a UNION ALL operation to get the data from the two tables.
Include additional columns for sorting: mgr_id (so a manager and those covered by the crèche will be separate) and another column (rnk, bleow) in order to ensure that the Manager will come first in each group.In SQL * Plus, you can use the COLUMN... NOPRINT to keep these additional columns to appear in reality.
Otherwise, you can calculate the new columns in a subquery, like this:WITH union_data AS ( SELECT mgr_id AS id , mgr_name AS name , mgr_id , 1 AS rnk FROM mgr UNION ALL SELECT emp_id AS id , ename AS name , mgr_id , 2 AS rnk FROM emp ) SELECT id , name FROM union_data ORDER BY mgr_id , rnk , id ;
-
Show the folder path in the title bar of Windows Explorer
How can I show the folder path in the title bar of Windows Explorer? I tried to switch to Classic view and check the "display full path" option under "Folder Options", but that did not work.
If there are no built in parameter to do this, anyone know of a good third-party plugin that will accomplish this?Heh, after playing with my Google in terms of search, I found the answer to my own question!
There's a small utility called Aerobar that you can download here. It puts the full folder path in the title bar of Solution Explorer. -
Send the folder displays "Sent (1)" and displays in bold
One of the Email accounts displays the folder "sent" in this State. I am able to send and receive email with the account. Does anyone know why it happened or how to fix it? This is a very heavily used e-mail account.
but y at - it a mail unread in the folder? Say with IMAP accounts, that it is possible to get a sent mail unread, or other downloaded from your phone device
-
- All other files in the desktop folder in Windows Explorer (such as a computer; Network; Control Panel) can be added/removed via their own check in control > customization > Change desktop icons. All except libraries. Why not?! INFURIATING!
- I know that you can create a shortcut, but I wanted the real folder to be visible like any other - coherence/elegance please!
- I was able to tweak the registry to display the folder libraries thanks to the estimable sevenforums http://www.sevenforums.com/tutorials/938-libraries-desktop-icon-add-remove.html
- But it's a work-around - there should be a check box!
Listen to Microsoft? Sorting!
It is not available as a tick box option in Windows 7, and you can pin Windows Explorer in the taskbar. It will launch directly to Libararies.
Its also very convenient for access to libraries.-Ramesh Kumar http://www.WindowsValley.com
-
View of the folder in the Bridge
I need the Panel "look in" to open at startup as shown in the attachment. This has always been possible previously, but on my current configuration (iMac 24 inches converted into Win XP) it will not display the folder list until I have navigate on this one.
I think I tried the Save method of window and while it records available to the Panel it will not save the list of folders that I leave the last.
Is there something else to try?
Hawkeye334 wrote:
I think I tried the Save method of window and while it records available to the Panel it will not save the list of folders that I leave the last.
Is there something else to try?
You think you've tried?
If you have saved the work space, it will still be available as shown in your attachment.
Bridge also opens normally as you left it.
If not, reset preferences holding the key Ctrl when you begin to bridge and now pressed until you get a dialogue box reset.
Note: make sure that the bridge is not set to start at log - on in the preferences.
-
Display the full path of the files found in the search tool
I just moved my business to a new processor, and I can't figure out how to see the full path objects that I find using the search tool. It is not enough simply to see the name of the folder in.
Under Folder Options, I checked all the options available to display full path names, but all I get for a path name is [name of folder] results.
What Miss me?
How to display full path name?
The game, 29 July 2010 17:54:45 + 0000, rtorstrick wrote:
I just moved my business to a new processor,
"PROCESSOR"?
"CPU" means "Central processing unit". In modern furniture
computers, the CPU is a relatively small chip, one
integrated circuit. It is on the motherboard inside the computer
case. It is not the case itself, or the entire computer, which
includes the case and what it contains.I don't know how incorrect practice of the appeal of the entire computer
the 'CPU' has started, but here's my proposal: when you buy a computer, you
normally get the deal and what is in it, with a monitor,
keyboard, mouse and perhaps a printer. All of these devices
connect to the case. Because everything connects to the case, the case
are "Central" to everything, and the term "central unit".
has been misunderstood and misapplied it.and I can't figure out how to see the full path objects that I find using the search tool. It is not enough simply to see the name of the folder in.
Under Folder Options, I checked all the options available to display full path names, but all I get for a path name is [name of folder] results.
What Miss me?
How to display full path name?
Right-click on a file name, the research found and choose "Properties".
Ken Blake
-
Set the folder to display the update to display everytime I open.
Well Yes, everytime I open a folder I re - check the little box that is a pain in the _ and uncheck a bunch of unnecessary stuff.
I would like to customize it so that it remains the same, each folder has different uses. I went to the options when I open and you can check out them from there, but restarts when I close and I have to repeat over the years on...
I see no reason why it cannot be saved in this specific folder or in general
Thank you very much
Albert Doja
Here's how to change the default template for a folder:http://www.vistax64.com/tutorials/70819-windows-explorer-folder-view-settings.html. Default behavior is to select the model based on the first type of file placed in the folder (you must choose something). Vista sets thefolder type template according to what are the types of files in the window and the settings display window Explorer. This will show you how to resetthe Windows Explorer folder view settings, disable Automatic folder Type discovery and increase theview of the folder cache to have Vista don't forget display settings, model of file type, size, or position of a specific window for when it was still closed to the location of specific path.
It does not work with the Sub record under, Open with,open in a new tab (Internet Explorer), etc... dialog windows of type through the goodFile menu bar item. These don't seem to be able to have their size or their position to recall. For the latter, you can use the free programhttp://autosizer.en.softonic.com/to resize them.
Here is another article on how to modify the columns in Windows Explorer and sort in Vista:http://www.vistax64.com/tutorials/108665-column-customize.html. This will show you how Add, Remove, move, change the widthand change the sort order of the columns in Windows Explorer in the way that you want.
Here is another article on how to change the display of the default folders in Vista (but she argues, it is not a perfect solution and can revert to the previous behavior is not as good as the two prior links provided:http://news.cnet.com/8301-13880_3-10019957-68.html.)
NOTE: Saving views to individual files is extremely limited - this very nice works only for the folder models by default so that you may have to make choices and compromises.
I hope this helps in your situation.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
I have a problem in my computer, its not display hidden files and folders. In folder options, I tried to check SHOW the FILES AND FOLDER CACHE and click on APPLY and OK but it does not work. Still hidden files are not displayed. but when I opened again Folder Options the one that is chosen is DO NOT DISPLAY the FILES AND FOLDERS HIDDEN. Several times I did but the same stills. I am logged in as administrator. How can I fix? Please tell me the solution and tell me is it caused by virus or not?
Hi ZohaibJamil,
If you have one machine to another,
Then, click Run, type Regedit, go to the next topic & select export.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden
Copy the file on the problematic machine, double click on it & select Yes.
If you do not have another machine,
Navigate to the registry entry above & change the values as below:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden
NOHIDDEN - Checkedvalue (2)
DefaultValue (2)
SHOWALL - Checkedvalue (1)
DefaultValue (2)
That's all!
-
Dreamweaver does not display the images of the root folder
Dreamweaver does not display the pictures in the folder root in the browser:
"< a href ="... /... /.. /.. / gen/index.php "> < img src ="... /... /.. ' / gv_logos/gen_logo.png "alt ="Gen"width ="130"height ="60"> < / a >
"< a href ="... /... /.. /.. / english/mall/home.php "> < img src ="... /... /.. ' / gv_logos/gen_mall_logo.png "alt ="Mall"width ="110"height ="60"> < / a >
I use Dreamweaver CS6. I checked display > display external file, it is checked. I unchecked it executed the script, still no change.
I've been in the problem for weeks.
It's driving me crazy. .
Thank you all. I finally discovered what the problem was. My ' link to ' was created at the root of the Document.
For later use, to all those who may have this problem:
- Launch Dreamweaver.
- Click on "Site" in the top menu.
- Select "Manage Sites".
- In the 'Manage the Sites' box, select your local site folder. For example, my_new_site
- Click on change icon (it's the second icon on the button "Import Site").
- The site for my_new_site configuration (for example) is displayed. Now click on "Advanced settings".
- Search "link to:" in the options, select 'Site Root '.
- Click on 'Save' later, the box disappears.
- Click on 'Done'... and you're done!
You don't need to restart your computer for the settings save constantly. But if that fell safe, Dreamweaver shut down and restart it. All links should display correctly.
But it is worth mentioning that all of the links in the following format will have to be edited:
/.../.../main.php
Just rewrite the link paths not all scripts.
-
is it possible to write a script that will display the script files folder in the tree
is it possible to write a script that will display the script files folder in the tree
Yes :-)
In your previous post, someone suggested to search for the file "SnpCreateTreeview.jsx", because it would just be the asked.
The script can be found here, just accept the EULA and download the example scripts of Bridge CS3. (For some reason it is not in CS4 samples because as far as I know)
Here's a version with small changes, it is up to you to point the script in the folder 'root' right, because this is, needless to C: on PC:
////////////////////////////////////////////////////////////////////////////
ADOBE SYSTEMS INCORPORATED
Copyright 2007 Adobe Systems Incorporated
All rights reserved
//
NOTE: Adobe permits you to use, modify, and distribute this file according to the
the terms of the Adobe license agreement accompanying it. If you received this file from one
source other than Adobe, then your use, modification or distribution of it is required in advance
written permission from Adobe.
//////////////////////////////////////////////////////////////////////////////**
@fileoverview shows how to use an item in the tree list and how to capture events with
functions of recall or script registered event listeners.
@class shows how to use an item in the tree list and how to capture events with
functions of recall or script registered event listeners.Its use
- Run the extract in the ExtendScript Toolkit (see Readme.txt).
- Enlarge / reduce the list items
- Check the JavaScript Console to see the events captured by the elements of the TreeView.
- Run the extract in the ExtendScript Toolkit (see Readme.txt).
-
What is the path of the folder in El Capitan Apple?
Hello friends, I recently mistakenly deleted an important 'Apple' folder and I know it's somewhere in the library.
But I don't know exactly where it was in the folder library can someone please tell me the full path name?
Library > Audio > Apple Loops > Apple is the only one I can find. Otherwise it is always in the Recycle Bin to restore? You can find it in Time Machine? See OS X El Capitan: files that come with your Mac. It lists the main areas that he could leave. Maybe he'll shake up your memory.
TT2
-
The contents of the folder are not displayed after upgrade
When you click to open more folders of bookmarks toolbar to not display all bookmarks. Instead, they display a small square under the left side of the folder name. On one that opens subfolders under him displayed the same square. Its as if they tried to open but could not draw the menu. Bookmarks are available and display pages if I choose to open in a tab when right-clicking, but they cannot be seen otherwise. I have the following extensions that are not currently enabled: Adblock Plus, Adblock more pop - up, download status bar, download helper, Leet Key, IP Norton, Norton Toolbar, password exporter, personas. All have been updated to the latest version. I have Image zoom which is activated. IO have several additional plugins that are not enabled. Please let me know if they are needed.
Do you use a character (Tools > Modules > themes)?
See also http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
-
Original title: trayapp
When I open the computer message appears, the component you are trying to use is on a network that is not available. Click OK to try again or enter a different path to the folder that contains the installation packagr 'TrayApp.msi' in the box below.
C:\Users\user\AppData\Local\Temp\7zS5216\setup\TrayApp\
When I click ok the message this way that c:\users\user\appdata\local\temp\7zs5216\setup\trayapp\ is not found. Verfy that you have access to this location and try again or try to find the 'TrayApp.msi' in installing a package file from which you can install the product'TrayApp.
When I try to cancel the warning message, is that an installation package for the TrayApp product is not found. Again the installation again using a valid copy of the 'TrayApp of installation' package. I already uninstalled all HP products, but this message is still bothering me, how to solve this problem?Hey Tama,
-What version of windows is installed on the computer?
-Have there been recent changes to the computer before the show?I recommend you go through the next HP document and check if it helps.Hope this information is useful. -
Cannot get the icons in the folder my pictures to display under photo thumbnails
When I downloaded my pictures to the computer I can see the pictures in Windows Photo Gallery, but when I open the file my images will not display the icons in the form of photo thumbnails. How can I change this
When I downloaded my pictures to the computer I can see the pictures in Windows Photo Gallery, but when I open the file my images will not display the icons in the form of photo thumbnails. How can I change this
=========================================
Here's a possibility... go to... Start ORB / Control Panel.
Folder options / tab / files and folders / uncheck
"Always show icons, never thumbnails" / apply / OK. Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.
Description
Creates two hierarchical list of TreeView items. One is static, with a fixed set of point
nodes that you can expand and collapse. The other is dynamic; Item nodes are added and removed as
the need for a view of the file system.
The list items in the TreeView control to display the folders and files custom images. When you add items to the
TreeView list, type 'article' is used for elements of the leaf and 'node' to the elements of the container.
Dynamic TreeView captures events in two different ways. It uses callback functions to capture the
node to expand and collapse events and selection changes and also registers an event listener to
capture double-click events.
@constructor constructor
*/
#targetengine "session".
function SnpCreateTreeView()
{
/**
The context in which this code snippet can work.
@type string
*/
this.requiredContext = "\tNeed runs in the context of the Bridge\n."
/**
The location of this script file system
@type file
*/
var scriptsFile = new File($.fileName);
/**
The location of the file system resource PNG file used to represent folders
@type file
*/
this.folderIcon = new file (scriptsFile.path + "/ resources/Folder_16x16.png");
/**
The location of the file system resource PNG file used to represent files
@type file
*/
this.fileIcon = new file (scriptsFile.path + "/ resources/Story_16x16.png");
/**
The root folder that will be used for the dynamic tree
@type string
*/
this.rootFolder
If (File.fs is "Windows")
{
this.rootFolder = "C:";
}
on the other
{
this.rootFolder = ' / ';.
}
}
/**
Functional part of this code snippet. Creates the ScriptUI window and its components,
and defines the behavior.
@return true if the code snippet is executed as scheduled, false otherwise
Boolean @type
*/
SnpCreateTreeView.prototype.run = function()
{
$.writeln ("about to"run SnpCreateTreeView");
Create the window
var win = new window ("palette", "SnpCreateTreeView", undefined, {resizable: false});
Create the Committee for the static TreeView control
sPanel var = win.add ('Committee', undefined, 'TreeView Élément') static;
sPanel.alignment = ["fill",""];
sPanel.alignChildren = ["fill",""]
Create a TreeView list
sTv var = sPanel.add ("treeview");
sTv.preferredSize = (300, 200);
Add static items to the list, in a hierarchical structure.
for (var i = 0; i)<>
{
sTv.add ("node", "Item" + i);
for (var j = 0; j)<>
{
sTv.items [i] .add ("item", "Sub Item" + j);
}
}
Create the Committee for the dynamic TreeView control
var dPanel dynamic = win.add ('Committee', undefined, 'TreeView Élément');
Create a TreeView list
TV digital var = dPanel.add ("treeview", undefined);
dTv.preferredSize = (400, 300);
Create the root node element
var aNode = dTv.add ("node", "/");
Pair it with an image of the icon
aNode.image = this.folderIcon;
Define a handler for the double clicks
myOnDoubleClick = Function
{
if(e.detail == 2)
{
$.writeln ("double click");
}
}
Adds the handler as an event listener to the TreeView element.
dTv.addEventListener ("click", myOnDoubleClick);
Keep a reference to this object
var that = this;
Define an event handler for when a node is expanded
dTv.onExpand = function (point)
{
$.writeln (item.text + "is now expanded.");
nextItem var = item;
var path = "";
goUp var = true;
While (goUp)
{
path = "/" + nextItem.text + path;
nextItem = nextItem.parent;
If (instanceof TreeView nextItem)
{
goUp = false;
}
}
Remove all children of this element
item.removeAll ();
var Ref = new file (that.rootFolder + path);
If (Ref instanceof Folder)
{
children var = ref.getFiles ();
for (var i = 0; i)<>
{
If (children [i] instanceof file)
{
Item.Add ("node", children [i] p:System.NET.mail.MailAddress.DisplayName);
Item.Items [i] .image = that.folderIcon;
}
on the other
{
Item.Add ("item", children [i] p:System.NET.mail.MailAddress.DisplayName);
Item.Items [i] .image = that.fileIcon;
}
}
}
}
Define an event handler for when a node is reduced
dTv.onCollapse = function (point)
{
$.writeln (item.text + "is now reduced.");
}
Define an event handler for when the selection changes
dTv.onChange = function()
{
$.writeln ("selection changed");
}
Display the window
Win.Show ();
$.writeln ("Ran SnpCreateTreeView");
Returns true;
}
/**
"main program": construct an anonymous instance and run
as long as we are not unit - test this code snippet.
*/
If (typeof (SnpCreateTreeView_unitTest) == 'undefined') {}
new SnpCreateTreeView () .run ();
}
Maybe you are looking for
-
firefox on my desktop icon is highlighted how I turn off highlight it?
firefox on my desktop icon is highlighted how I turn off highlight it?
-
How to change the parameters of voltage/mAh battery?
Hello I bought a VGP-BPS9 (11, 1V / 4400mAh) for my laptop of SZ-670N who had a VGP-BPS10 (10.8V / 5800mAh) when I was abroad. The local Sony rep guy said that the original model was not available on the market and I have to use a similar stack and f
-
C6280: Select Auto duplex printing
Hello:I use an HP running Windows Vista 32 bit Home Premium laptop.I had already completely uninstalled my HP Photosmart C6280 all-in-one printer.Today, I reinstalled it using the CD-ROM supplied with the printer.When I went to print a MS Word docume
-
HP Pavilion dm4 / Windows 7 - all wipe them outside the system and removed all HP programs
So my computer just got back from the repair shop and I had to start with a blank slate. He removed all HP programs, including the program Pass Simple and webcam (I forgot what it's called). I tried to reinstall Simple Pass AND the new version, and n
-
Windows 7 full screen mouse Bug?
Hello. I got Windows Media Center to open full screen mode and the mouse is invisible no matter what I do. Same Minecraft, so this may be a problem for Windows. Do you know how to fix this? Everything I do in windowed mode.