User choose the alert folder
Hi all
very new to scripting and I'm just kinda stuck.
I made a script that works, but I want to refine even more to make it more user-friendly.
When the script starts, it asks the user to choose a folder where their images, but there are two problems with that.
First of all as the default dialog box the DESKTOP folder and the user accidentally press OK, the script will take action even if it is an incorrect location.
Secondly there is no exit procedure if uses rather press CANCEL in the dialog box.
I'm trying to implement a fail-safe, so the end-user will have feedback that is when pressing OK a popup asking the user if the folder "x" corresponds to the correct location and give a YES/NO dialog - YES go - PERSON will go back to the file selection screen.
Also, I need to make the script exit cleanly if the user selects the button CANCEL on the file selection screen.
Here is a snippet of my code as it is:
// Ask user for DARK input folder alert("Please Choose The Folder Where Your DARK Frames are located.", "DARK FRAME FOLDER LOCATION"); var DARKinputFolder = Folder.selectDialog("****Please Select The Folder Where Your DARK FRAMES Are Located****"); // Ask user for LIGHTS input folder alert("Please Choose The Folder Where Your LIGHT Frames are located.", "LIGHT FRAME FOLDER LOCATION"); var LIGHTSinputFolder = Folder.selectDialog("****Please Select The Folder Where Your LIGHT FRAMES Are Located****"); // ***HANDLE THE DARK FRAMES*** // get all files in the DARK input folder var FILE_TYPE = ".orf"; // The type of files that this script works on -- you can change var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK); if (DARKfileList.length <= 0) { var FILE_TYPE = ".tif"; // The type of files that this script works on -- you can change var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK); } if (DARKfileList.length <= 0) { var FILE_TYPE = ".tiff"; // The type of files that this script works on -- you can change var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK); } if (DARKfileList.length <= 0) { var FILE_TYPE = ".jpg"; // The type of files that this script works on -- you can change var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK); } if (DARKfileList.length <= 0) { var FILE_TYPE = ".jpeg"; // The type of files that this script works on -- you can change var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files var DARKfileList = DARKinputFolder.getFiles(SEARCH_MASK); }
Any help would be appreciated
Kind regards..
There was a typing error in the above code. You put it ';' is not fair. I put a hat i because, if it's bad. The code should be:
var myFolder = new Folder('/c/test'); var holdFolder = new Folder() var dlg = new Window('dialog','Select a Folder'); dlg.getTheFilesBtn = dlg.add('button',undefined,'Select a folder'); dlg.getTheFilesBtn.onClick = function(){ holdFolder = new Folder(myFolder); holdFolder = Folder.selectDialog('select a folder to process',myFolder); if(holdFolder){myFolder = holdFolder}; dlg.close(); } dlg.show()
Tags: Photoshop
Similar Questions
-
A feature missing from CC Packager: choose the temp folder
When you use the conditioner of creative cloud to assemble a package, the software downloads all necessary files. But it downloads not directly to the chosen location, but somewhere on the disc of the operating system.
But I have my operating system on a 64 GB SSD, which already > 55GO is used. Thus, Packer CC doesn't have enough space to store all the files. So, I can't get a package.
IMHO the packer must use the drive/folder assigned also to temporary files, not the OS disc.
Hi WakkerMartijn,
If you go to the Creative cloud Packer preferences where you see the signed in user. You can then change the where the default location for the cache to the application.
See you soon
Karl Gibson | Product Manager | Company, COMPUTER tools
-
DateField clear if the user choosing the wrong pattern (or validation fails)
Hello
I have a date field for which I have a particular pattern("DD/MM/YYYY").
I want to get out in addition to the entered value if the user enters the value in the wrong format.
I know that this is possible using Designer 9.0
If (this.errorText! = null)
then
this.rawValue = 0; -in the event exit
But I am using Designer 8.2 for the current project and please tell us how this can be made possible here.
Thank you
KC
I don't think it's a good idea to limit the input to the ground that one format only.
This is going to be frustrating for users, as the validation may fail too often.
It is better to make the entry as flexible as possible by combining several models:
As the use of template editing:
date {jj. MM YYYY} | date {YYYY} | date {DDMMYYYY} | date {DD MM YYYY} | date {YYYY-MM-DD} | date {DD, MM, YYYY} | date {MM/DD/YYYY}. date {jj. MM YY} | date {parag} | da you {DDMMYY} | date {JJ MM AA} | date {JJ-MM-AA} | date {DD, MM, AA} | date {JJ/MM/AA}
and like the model display:
date {MM/DD/YYYY}
Users then can enter dates in many ways but always get the correctly displayed as DD/MM/YYYY.
-
bookmarksbackup folder - choose the profile folder
I have two profiles of firefox. Bookmarkbackups switch 'automatically' to the 'bad '. How can I change this?
Are you sure? Go to help > troubleshooting information and click Open containing folder to find out what profile you are using.
-
can I convert the option to choose in applescript in Automatic Configuration of the action folder
Hello
H I have an applescript script that is a sort of an image file and fix it to the sage according to uniqueness of the folder names.
In this script I choose the folder option, but I want to convert the option into action automatically as a file configuration. as
on the addition of items in folder to this_folder after receiving of these_items
Here's my script
d choose the game folder
_main ({d})
on _main (argv)
o script
property ff: {} - list of aliases
property gg: {} - list aliases to be moved by prefix
nn property: {} - list of file names
mm property: {} - list of prefixes
property mm1: {} - separate prefix list
Repeat the operation with d in the argv - by source directory table
d to g-d content of the kit
-retrieve the list of aliases and names for document files
Tell application "Finder".
say g-d document files to set point {ff, nn} to {it as list of alias, the name}
tell the end
Try
value {astid0, delimiters of point for the AppleScript text} {of AppleScript point text delimiters {'_'}}
Repeat with i from 1 to count my nn
the value {n, m} {my point nn i, ' "}
If (count of n textual elements) > 1 then set m ' "& n text items 1 thru-2
put end my mm m
If m ≠ "" and m is not my mm1 then put end my mm1 m
end repeat
the text value of the point astid0 delimiters AppleScript
errors errs errn number
the text value of the point astid0 delimiters AppleScript
error number errn errs
try to end
Repeat with m in my mm1 - with separate prefix
m to m content of the kit
-prepare the destination for this prefix
Try
Set dst as string d & e & ': ' as an alias
There is no error number-43 - dst
Tell application "Finder" to set the dst (make new folder d with properties {name: m}) as alias
try to end
Repeat with i from 1 to count my mm
If my mm point i = m and establish the end of my gg to my ff I
end repeat
If gg ≠ {} then tell application "Finder" to move the gg in dst with the replacement
Gg to {} set
end repeat
end repeat
end of script
say o to run
end _main
so if support convert this script for folder action script please help to do.
Thank you
Rakesh
You just need to provide multiple ways to call your manager, for example:
on run -- application double-clicked or run from the Script Editor set d to choose folder _main({d}) end run on open droppedItems -- items dropped onto droplet _main(droppedItems) end open on adding folder items to this_folder after receiving these_items -- folder action _main(these_items) end adding folder items to on _main(argv) -- main routine -- whatever end _main
-
Emailing in the Actions folder to export using Lightroom 5
I'm so frustrated right now.
This is not the first time I spent hours trying to get Lightroom to work with my email client (I use airmail on a Mac).
I follow the directions and create an alias of air mail and drop it in the folder of export measures.
But when I try to export, it is to open my Applications folder.
What in the heck I'm doing wrong?
Thank you
Yes, it's true.
It will open your default email application, but you must configure the backup for this destination.
You must follow the exact instructions of same as you did before, but I'm here mention adding one more step so that you don't get of this finder window popping up when exporting.
Here are the instructions that you must follow:
- In the Explorer (Windows) or the Finder (Mac OS), create a shortcut (Windows) or an alias (Mac OS) to your favorite email application.
- Start Lightroom and in the library module, click the export button.
- Selectionner select to email in the list of Lightroom Presets on the left side of the dialog box, and then scroll to the parameter area of post processing on the right side of the dialog box.
- Choose after export > Go to export Actions folder now. Lightroom offers you the folder in Explorer (Windows) or the Finder (Mac OS).
- Drag the e-mail application shortcut or alias created in step 1 in the folder of export measures.
- Back in Lightroom, choose after export > e-mail application.
- Click the drop-down list next to "export to:" and choose the specific folder. Then click 'Choose' under the same drop-down list that opens the Finder window, and you must go through and choose a location where you want to save the exported files
- Click the Add button to save this new preset as a "Preset" defined by the user.
- Click Cancel to exit the export dialog box.
- Try to export your images from Lightroom and this should allow your application to email pop up.
Step 7 is an additional step in this list you need to do and to create a new preset again with these parameters.
I hope this helps.
Kind regards
Claes
-
Since a few hours ago, I click on the download links are not processed as expected:
-There is no indication of a download link click at all, that is, no confirmation, no dialog box to choose the destination folder, etc.
-downloads TO start even if files are downloaded SILENTLY in the folder Temp (C:\Users\***\AppData\Local\Temp) as a .part files (and stay there when the download is complete)
-C' is the case on Web site downloads, I tried
-the library has no record that all the files have been downloaded
-There is also no indication of a download completion
-downloaded files are intact as far as I can tell (tested by renaming and extract a zip file)
-However, right-clicking and choosing "save link under ' works very well
-In addition, the elements of the popup menu "downthemall" Download Manager work very well (for example "save the link with downthemall")
-ive also noticed that closing the download source tab does not cancel the download, for that I have to close completely the ff
Measures taken so far:
-restart ff
-restart the computer
ran-a anti-virus (avast), ran malwarebytes scan
-ran ff with all extensions disabled: same problem
-a went through the steps detailed here: https://support.mozilla.org/en-US/kb/cant-download-or-save-files
-tried to download files with the different browser: worked well
-tried to download files with profile ff different: worked well
-tried to download files in safe mode ff: worked well
... any ideas?
- shrug *.
I "solved" this by backup of bookmarks, passwords and settings and such things of the migration to a fresh profile ('refresh function'), as well as reinstall and - configure my extensions.
-
Hello world
Sorry if this question is stupid, but I always imported files easily on my hard drive. But recently, since I've updated my Lightroom, I can't find the menu destination folder when importing photos.
I go in the menu library, choose IMPORT, select the original folder, the photos I want to import and then, on the right side, I only see the option 'create an intelligent Preview' and the option of keywords/tags. Where is the part that I could choose the destination folder - and even create subfolders?
If I click on the triangle in the lower left corner to minimize the menu, I can see the menu "create a subfolder. However, the normal display mode brings no option like that, but by selecting the main folder by clicking on the icon in the corner right-towards the top.
What Miss me? It seems not very practical for me.
Cheers in advance!
The destination tab may have accidentally become hidden, next to one of the other header in the sidebar right and you click right there get a pop up that will allow you to restore it. See the screen capture.
-
How to choose the download location? download automatically to the users in c drive folder... I want to change my office... Please help me out...
Tools-> Options-> save-> click on the Browse button and find the folder where you want to save the files.
-
Windows 7 users / locked the folder my documents (junction point)
I use Windows 7 and have just loaded Microsoft Office on a new laptop computer and when I try to set as default file locations in "Word" it tells me that I can't access name / my users/user documents, when I look at the way it shows a lock on the file. I looked a few answers to this problem but do not understand. There are two users on the laptop and everyone can see other files, but not their own, in other words when I am logged in, I can see other users ' users / folder my documents but not my own and vice versa. " The result is that when I try to save a document using "save under" it comes up with access denied to folder. I know that I can choose where I want to save my colleague he needs to record simply in his papers when she was on but not save must start looking for the complete path.
Location in C:\Users\
registration by default defined \Documents. Do not use the 'My documents' folder - it is a junction point and should not be modified or used by users in some way. If you have any other questions on-site Office, please post on the Forums of office to the:http://social.answers.microsoft.com/Forums/en-US/officeinstall/threads , where the experts at the office will be happy to help you.
I hope this helps.
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.
-
Could not create the required folder: / Users/Jonas/Library/Application Support/Adobe/Lightroom/Filter Presets
Hello
Please try below steps:
1. close Lightroom
2. open Finder and click on go (in the menu bar) and choose go to folder
3. tap ~/library and click Go
4. open the Application Support > Adobe
5 rename the old folder Lightroom in Lightroom
6. start Lightroom to make sure it loads well
Kind regards
Claes
-
I installed Adobe Lightroom CC. Launching, a popup appears, which says: "AN INTERNAL ERROR has OCCURRED. Could not create the required folder: /Users/(my user name)/Library/Application Support / Adobe / Lightroom / develop Presets. "So even if Lightroom CC is installed, it will not launch. What should I do to allow him to launch?
I had the same problem, just bought a new Macbook Pro (June 2015) and Lightroom CC had this error as well. Here is the dialog box that I've had with Adobe, and it cures the problem:
Adobe: Please click on the search option in your Dock at the bottom of the screen.
Adobe: Then click GO on the MenuBar at the top of the screen.
Adobe:, and then click GO to folder, and then type: ~/Library/Application Support/Adobe /.
Scott: OK, I did
Adobe: Control-click on the folder and choose read information.
Adobe: Expand the section sharing & permissions.
Adobe: Click on + icon, and check if the administrator select
Scott: OK, I chose the Admin
Adobe: Give read and write to the Admini
Scott: completed
Adobe: Click the gear icon and select apply changes to included items
Scott: OK
Adobe: In the Finder window, click GO and select GO to folder
Adobe: Type in
Adobe: / Library/Application Support/Adobe/ and press enterScott: completed
Adobe: Control-click on the folder and choose read information
Adobe: Expand the section sharing & permissions.
Scott: ok
Adobe: Give read and write permissions to all users
Adobe: Then click on the sign + and add the rest of the users from the list
Scott: completed
Adobe: Now, please try to use the Lightroom from your computer.
Scott: Thank you - it works!
Hope this helps others.
-
How can I import Firefox bookmarks, now stored in the folder of the user on the same PC (new), in Firefox? I exported my old PC Firefox bookmarks in a folder [Windows 8] on my new PC.
When I use the ease of importing from Firefox, it will only import a bookmark at a time - and then it inserts the bookmarks all the main pages on the site marked with a bookmark, not just the one I initially put bookmark. Also, it does not matter the information stored in the bookmark tag.Sure thing.
- Open the dialog box run by pressing the Windows key by pressing R
- Type of
%appdata%
in the immediate window and press ok - Open the Mozilla folder
- Open the folder of Firefox
- Open the profiles folder
- Copy the folder that is located in this folder on a USB
- Install and run Firefox on the new computer
- Closing of Firefox
- Repeat steps 1 to 5 on the new computer
- Open the folder that you copied from your old computer
- Copy the contents of this folder into the folder inside the folder of the profile on the new computer
- Allow Windows to replace all records in doubles with those you are copying to the computer is prompted
If you have problems with these instructions, or if you would like more information, feel free to comment below.
-
I would like to have the Menu Editor installed for all users. I tried putting the as file in c:\Program Files (x 86) \Mozilla Firefox\extensions in the expectation that the user would be prompted to install.
You must rename the XPI file to the ID (GU) of the extension in the install.rdf file or just install the extension in a profile and copy the file or folder of this profile in the extensions folder.
-
User should not be able to remove all the files in the shared folder
Hi all
I have a shared folder accessible to each user Department wise, now I don't want to leave one to delete all files in the shared folder
Shared folder is created on the Server Windows server 2008
Please suggest emergency
--
Kind regards
KalpeshHello
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.I hope this helps.
Maybe you are looking for
-
When I send a text message and mobile data are off, it is not given, but I do not see this message for a few minutes. I can then refer using "send as a text message. How can I 'send as a text message' in the first place?
-
HP Elite-410f: upgrade GPU in Hp Elite-410f
Hello I am on a very tight budget (living off scholarships) and want to upgrade the Hp Elite-410f my grandfather bought me in 2010 and use it to play as long as possible (instead of dipping into my savings to build desktop game I don't need). My conc
-
Hi, I have recently updated my Server 5.0.15 under El capitan 10.11.3. After that, Service OD and the Profile Manager can be activated server GUI. Of course, all users on my network are missing from the list of users; just local users remain. Reason:
-
DRM activator application has stopped working
play the games of big fish and a few weeks ago drmactivator application has stopped working shows up as a message and I can not play all games except those supplied with the computer - how can I fix this problem
-
This morning when I turned on my computer, it got stuck at the loading bar section. I turned it turned off, then back on the choice of the repair option. In the end, the repair report says that it could not solve the problem and asks if I want to sto