Choose several folders with choosing menu and empty their contents
Hi all
new to applescript and want to create a file menu choose where I can choose several folders and empty their content. There will be a dialog box at the end let me know that the files have been purged. The script I'm working for an individual file:
say application 'Finder '.
Close each window of
Open (choose folder with prompt "including one or more folders should purge?" multiple selections allowed location 'True' by default ' / users/bryceratops / ')
Set an to front Finder window
move each agenda a in the trash
Close front The Finder window
end say
say application 'Finder '.
display the dialog box buttons "purged records." {"ok"}
end say
But Im having this script to open, purge and close every finder window, if I selected several files in the menu choose a wire installation difficult.
Any ideas?
See you soon
Hello
Put the output of the command 'choose folder' in a variable (no need to open these folders).
----
the tFolders value (choose a folder with default location "including one or more folders should purge?" guest "/ users/bryceratops / ' with multiple selections allowed)
Tell application "Finder".
Repeat with thisDir in tFolders
remove items from thisDir - trash
end repeat
tell the end
activate
display the dialog buttons "purged records." {"ok"}
---
Tags: iOS Developer
Similar Questions
-
Create several folders with several folders in the rapids
How can I quickly create several folders with a specific set of folders in each of them?
for example:Folder1-> test1, test2, test3...Folder2-> test1, test2, test3...Folder3-> test1, test2, test3...etc.I want to create several folders named specifically with an ID I'll specific, and in each of these cases, I would like to have a set of folders.Thank you for your help.Hello
Check out the steps suggested by Steve Winograd and TechHead74 in http://answers.microsoft.com/en-us/windows/forum/windows_xp-files/how-or-can-i-create-numerous-new-folders-instaed/a2a67066-7e97-47b3-aba4-8e8a1a460ca3
Hope this helps you.
-
Frequently, Adobe Edge animate the files with the *.an extension will open with the menu completely empty elements.
The HTML file remains in the folder, it works, but it is impossible to repeat the file Edge animate again. What can I do to restore the file or to prevent other cases like this?
Above all, why do?
Maybe because some elements such as an image or a code has been changed while the file *.an was opened while the change has been made?
Thank you very much
Paulo Tasca
NextPage
Sao Paulo, Brazil
See my tutorial can help:
-
How can implement you not with Tim Capsule and AirPort their simulation on the iMac?
Hello
How can implement you not with Time Capsule and AirPort their simulation on the iMac?
I don't know what you're asking.
AirPort Extreme is a wireless router.
A Time Capsule airport is an AirPort Extreme with a built-in hard drive for data storage.
An iMac is a Mac computer.
An iMac is not a wireless router, so he is unable to perform the functions of a wireless router.
-
Conflict with Superfish menu and WowSlider
I thought I should start a new thread about this. I bought a license for WowSlider, troubleshooted almost all issues (menu hidden behind the cursor has been resolved by resetting the z-index for the menu at 101, WowSlider is set to 100). However, the questions continue with the menu. I have even the z index-999 and added a bunch more of the values of z-index in different parts of the menu in css.
I narrowed down it to her being related to have several jquery objects in a page. I have a conflict with the Superfish menu and the WowSlider - on the homepage, where is WowSlider. The forums suggest to insert the noconflict code depending on whether I did but he did the menu fail completely.
< script type = "text/javascript" >
jQuery.noConflict ();
var $j = jQuery;
< /script >
I need to do more with this noconflict command but cannot find an example I understand. Your most appreciated expert advice. I hope that I am close to the resolution of the problem.
Thank you.
The JQuery forum solution, for those interested. I had to move the section script to the head of Wowslider (of Wowslider) to the top of my list of scripts - I had it below. It worked.
-
I want to put in place a "build mini-server' for our team. Since VMware Player is not taken in charge more I had to use VMware Workstation, and with some success, I put things up. But now more and more surface of trouble!
To enable auto-start for the virtual machines, they must obviously be "shared." But it looks like, with this, the nuisance that these virtual machines cannot share folders more with the host. And also, it seems that copy and paste does not work with these "shared VMs.
Is there a work around to get these features also works with 'shared VMs?
It is VERY annoying and tedious to always have to these VMs to shuttle between shared and non-shared mode just to be able to transfer data or new versions of code for them!
Thank you for using the workstation. How to create a script with:
WS t vmrun start "c:\my VMs\myVM.vmx".
And add the script to the Windows Task Scheduler to run at startup.
-
several loops with error handling and controll
I have a project where I spin 4 loops at the same time and must stop all the loops with a stop button as well as all the loops if one of the loops will receive an error.
Loop 1.
Loop start
control the other 3 loops
Loop 2.
Analog voltage reading
Loop 3.
Digital inputs to read
Loop 4.
Write digital output
Someone knows how to do this?
Two other methods not mentioned in the otherwise excellent document that mentioned Matt are the use of a global variable 'stop all' and a relative using a Global Variable of VIG/functional. The reason to talk about, is that they can be used also stop 'detached' live, live which are defined to run asynchronously (and therefore a bit 'out of control') regarding the main VI.
I use a "combination of ingredients" for some projects I'm developing using LabVIEW 2016 and its support of the channels. For example, I use a Messenger channel to create something akin to a message in queue manager. When the event loop detects that the exit button has been pushed back, it puts a Message "Exit" on the channel of Messenger and stops himself. When the Message Loop sees "Exit", it sends one release Message who else has need to see (in one case, the producer of a producer/consumer model) and stops himself. When the producer Gets the output Message, it puts a "last element is invalid" on the flow of the channel for consumers and stops himself. When the consumer gets the message of the last element, he stops himself. A magnificent waterfall.
And I work (not yet 100% complete) how to extend this to start the asynchronous calls that do not (yet) support channels as easily...
Bob Schor
-
[Android] Several problems with Acc.meter and camera
Hello
I did some tests on my Galaxy S on its sensors. Here is the code:
import flash.sensors.Accelerometer;
import flash.events.AccelerometerEvent;var acc:Accelerometer = new Accelerometer();
acc.addEventListener (AccelerometerEvent.UPDATE, {Function
accX.text = e.accelerationX;
accY.text = e.accelerationY;
accZ.text = e.accelerationZ;
});Well, while this works fine in device central, with the sensor three showing 0 when the unit is always, when I install it in the device itself those are the default - -:
0,0195 G x
0,0195 G in Y
1,0152 G to Z
Does anyone have an explanation?
Then, the second strange thing is on camera obj. Here is the code:
import flash.media.Camera;
import flash.media.Video;var: camera = Camera.getCamera ();
var vid:Video = new Video (800, 480);
vid.attachCamera (cam);
addChild (vid);The displayed video is extremely slow, like 1-2 fps. Am I missing something?
Thank you
http://en.Wikipedia.org/wiki/G-Force#Measuring_g-force_using_an_accelerometer
I think your camera problem is a bug, the fix that will be available in the next version of AIR. The problem should disappear when you switch your app and back into him.
-
Problems to return several rows with setting SLIDER and SO, to OTHER DBMS_OUPUT
Hi people
I use 11g Express Edition 11.2.0.2.0.
I'm trying to return the name of a student, all of their exams, grade, grading and if it is a pass or fail.
In the code I 'fiddled', if the student has failed it works. However, if the student has spent just returns 'result = Pass' and cannot return their name, rank and tests, pass mark.
Second question (and please let me know if I need this post in a separate thread) is if a student has completed multiple tests, it returns only one.
Thanks for any advice you can give me.
SET SERVEROUTPUT ON DECLARE CURSOR c_pass_fail_cursor (p_studentid number) IS SELECT students.firstname, test_history.score, test_id.test_name, test_id.passing_grade FROM students INNER JOIN test_history ON students.STUDENT_ID = test_history.student_id INNER JOIN test_id ON test_id.test_id = test_history.test_id WHERE students.student_id = p_studentid AND test_history.SCORE < test_id.passing_grade; v_name students.firstname%type; v_score test_history.SCORE%type; v_test test_id.test_name%type; v_passing test_id.passing_grade%type; v_result varchar2(4); BEGIN OPEN c_pass_fail_cursor (1); LOOP FETCH c_pass_fail_cursor INTO v_name, v_score, v_test, v_passing; EXIT WHEN c_pass_fail_cursor%notfound; END LOOP; CLOSE c_pass_fail_cursor; IF v_score < v_passing then v_result := 'Fail'; DBMS_OUTPUT.PUT_LINE (v_name || ' ' || v_score || ' ' || v_test || ' ' || v_passing || ' ' || 'Result = ' || v_result); ELSE v_result := 'Pass'; DBMS_OUTPUT.PUT_LINE (v_name || ' ' || v_score || ' ' || v_test || ' ' || v_passing || ' ' || 'Result = ' || v_result); END IF; END; /
Hello d670...
I would try this code:
DECLARE
p_studentid NUMBER;
v_result VARCHAR2 (20);
BEGIN
p_studentid: = 1;
FOR rec_result IN (SELECT students.firstname
test_history.score
test_id.test_name
test_id.passing_grade
Students
JOIN test_history
ON students. STUDENT_ID = test_history.student_id
JOIN test_id
ON test_id.test_id = test_history.test_id
WHERE students.student_id = p_studentid
AND test_history. NOTE < test_id.passing_grade ="" --=""> this line needs to be removed!
)
LOOP
IF rec_result.score<>
THEN v_result: = "Fail";
ANOTHER v_result: = "Pass";
END IF;
DBMS_OUTPUT. Put_line (rec_result.firstname |) ' ' || To_char (rec_result.score) | ' ' || rec_result.test_name | ' ' || To_char (rec_result.passing_grade) | ' ' || "Result =" | v_result);
END LOOP;
END;
/
I hope it helps.
Best regards, David
-
I am able to create a cluster and place it in a folder. However, I don't know how to set it for a specific folder when there are several folders with the same name across different hierarchical depths.
For example, suppose I want to create a cluster in the Department of human resources:
New-Cluster -Name Cluster1 -Location (Get-Folder HR)
Then assume that a HR folder is created on several issues, such as the following:
Datacenter-Corp.-HR
Data Center-NY-HR
Data Center-CA-HR
...I could then create the cluster in the Department of human resources of NY:
New-Cluster -Name Cluster1 -Location (Get-Folder NY | Get-Folder HR)
But what can I do if this depth is not standardized or changes, such as the following:
Datacenter-Corp.-HR
Data Center-East Coast-NY-HR
Data Center-West Coast-CA-HR
...Is it possible to see this full path, regardless of the depth of existing clusters?
How can I create a new cluster in a file which can be of various depths and have the same name?
Thanks for any help.
You can go down the road with the following script.
At the end the variable $fld contains the final location of the path and you can make a New-Cluster - location $fld
$folderPath = "Datacenter\West Coast\CA\HR"$fld = $null$folderPath.Split('\') | %{ if($fld){ $fld = Get-Inventory -Name $_ -Location $fld -NoRecursion } else{ $fld = Get-Inventory -Name $_ -NoRecursion }} $fld
-
help with the menu button and the film load
Hi all... I am very new to flash and actionscripting and I am self-taught using mainly Internet searches.
I'm building a site with a menu and a banner that is controlled by the menu (two swf files). I got to the make contact however, I'm stuck at this point.
When 'bt_1' is hit I would like to be respected a "mv_1" to load in the banner.swf with intro animation... this I figured out how to... but now when you click on "bt_2" I want to play the rest of the animation of "mv_1" to unload the film before loading "mv_2" with its animation enterance respected... that I would make to several buttons. The method that I use for my local connection is...
Sending script
mySender = new LocalConnection();
on (release) {}
------each button corresponds to a different setting... 1,2,3,4,5,6
_root.mySender.send ("menuconnect", "action", 1);
------This is the best way that I could understand to disable the buttons appropriate... There might be a better way?
Home.Enabled = false;
couple.enabled = true;
Events.enabled = true;
Bridal.enabled = true;
Media.enabled|disabled = true;
RSVP.enabled = true;
}
Script of reception
myReceiver = new LocalConnection();
myReceiver.action = {function (doThis)}
If (this == 1)
gotoAndPlay (2);
If (this == 2)
gotoAndPlay (3);
};
and so and soforth for all six buttons
myReceiver.connect ("menuconnect");
If all this makes no sense at all, I'm sorry... I tried my best...
If some pro out there can understand what I'm trying to do and can help me I would greatly appreciate it... Thank you all
SJSI would like to use the ID to link to each of your mv_1, mv_2 etc. in the main stage and control them. This would have the advantage of eliminating the duplication of code and keeping most of your code in one place (image 1 of your _root timeline).
If mc_1 etc was connection id mc_1ID etc, the other began on a frame labeled "outro" and ended on the last image, you can use:
-
Open with a menu... crazy!
Hello world
I have a small problem with my drive, when I double click on it gives me
open it with him menu and did not open the reader
the only way to open it is to use Explorer
can someone solve this problem...
Look at the root of the C:\ drive a file named autorun.inf and if found, remove it. MS - MVP - Elephant Boy computers - don't panic!
-
Anyone having problems with Windows 7 and the HP LaserJet P2035n?
It seems, after a few months of service, there are several problems with this printer and Windows 7 only. We have several offices that use this printer and almost each one has similar problems. It will printer randomly disappear, not being able to print anything at random times of the day, to the spooler crashing every two minutes or more. There is no problem at all with Windows XP or Vista, only 7. Reinsalling the printer driver takes care of the problem for a few days, but the questions up all over again.
Hello
The Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the Technet forums below:
-
Oracle 11.1.0.6 database
RHEL 5.3
Hi all
1.)
I want reorg several tables with the ETG. But because there are several tables with different indexes and column names I can not use the order by clause.
create the table reorg_HR_STAGE_EDW. SFHR_ORG_MAPPING_FILE
tablespace REORG
PCTFREE 10 pctused, initrans, maxtrans 1 255
storage)
initials pctincrease of 1 M following 0M 0
MINEXTENTS 1 maxextents unlimited
in select * from HR_STAGE_EDW. SFHR_ORG_MAPPING_FILE;
The table is going to get reorganized even without the orderby clause?
2.)
The steps I should follow are (please, correct me if I'm wrong):
-Create table with the new name in the new tablespace
-Remove the old tables
-Move converted tables to the original tablespace
Is it OK, what happens to the index?
Help, pleaseYou can also copy dependent table with dbms_redfinition. The procedure is called COPY_TABLE_DEPENDENTS. See http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_redefi.htm
ALTER table move would also be possible, but doen't it locks the table all the time?
Kind regards
-wiZ
-
Dissappearing glossary and table of contents
I use Robohelp 7 for the first time (I used before V6), and I have a problem with my glossary and table of contents. I created the two - and they appear when I generate and publish, but I can't understand how do seem to be edited.
If I click on in the project manager (they are each listed as helpSysName (Default), if that makes a difference) and then select Edit - nothing seems to happen.Thank you, thank you, thank you! The default loading environment did the trick.
I thought it should be included in a pod somewhere, but I don't couldn't find it. Very frustrating. Thanks for saving me from that.
Gail
Maybe you are looking for
-
I have TB and Outlook on the same PC running XP. Tried to import the selected TB mail and Outlook, but I get... the... client default e-mail message. TB is a folder to import but its empty. Checked and Outlook is set as the default client.I see that
-
I have the update to Firefox version. I use windows 7.
-
How can I find a PDF file in Firefox 5 running on Mac OS x (10.6)
I recently installed an update and received a message that my PDF Plug In for Firefox would be disabled, but that when the update has been installed the Plug in would be activated. This is not the case.I am running Firefox 5 on Mac OS x (10.6)
-
Photos entered from camera on computer memory card. The photos are in the image file
Tags used for the old pictures are still stored on computer. These tags are most relevant. I want to put the new tags on recent photos. How the old tags are eliminated permanently so you do not have a long list of existing tags.
-
Remove the effects of training of slider Windows 7 using a graphic tablet
I recently bought a HP Pavilion p6-2260ea PC with Windows 7 and Adobe Creative Suite CS6 to use with my Wacom Intuos 3 tablet. It seems to be a bit - spoke about problem that Windows 7 highlights some rather irritating effects of return of pen in th