How to create an app with automator to execute a bash script?
I want to create an application like Ds store Remover but it will remove the directories instead of a single file. So I was wondering how can I do to do this, I have a bash script that the code is below, I just need to know what to do. To get the app ask root password and allow the user to select the directory they want these directories.
sudo rm - rf ".» Thrashes.
sudo rm - rf ".» Spotlight-V100.
sudo rm - rf ".» Trash ".
sudo rm - rf ".» DS_Store '.
Hello D3ATH2020,
You must run a 'do shell script' and add 'with administrator privileges. See this technical note from Apple: https://developer.apple.com/library/mac/technotes/tn2065/_index.html
However, I strongly do not try what you are doing. There are better ways to manage the. DS_Store files. You don't want to remove these other directories. I mean, really, you want to do.
Tags: iOS Developer
Similar Questions
-
How to create an app with space name?
Hi all
How to create an application with the space, for example "Hello Word" name When I run my Simulator, I got ' Hello$ 20World "instead. I use the plugin for eclipse for development. I can see the Application descriptor for my application, and it shows the thin space. I tried to change the Blackberry project properties tab generate file output name, but it doesn't help in any way. Please advise...
Goto Blackberry project properties
Click the general tab
Write in title = "Hello World".
and you can see your title of the modified project
I hope that you ask for it only!
-
5.6.1 pages: How to create a table with more than 999 lines?
5.6.1 pages: How to create a table with more than 999 lines?
The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.
-
How to create Hlp files with labwindows 9.0
Hello
I used to create the dll with Labwindows 8.5 and use them with TestStand... The advantage is that with the help file, I can add information to the Fp file and loading the DLL with TestStand, the "?" button to open the help file...
But the problem is that I can't find help with Labwindows 9.0 generation...
Does anyone know how to create file hlp with Labwindows 9.0?
The procedure with Labwindows 8.5 has been:
Modification of the PS file, then generate the Option-> windows help
Thank you very much
Ronan
-
How to create a form with a submit in CC button animate using Actionscript 3
How to create a form with a submit in CC button animate using Actionscript 3. The file will first be a SWF but will also have the flexibility to export as HTML5
I've searched high and low for an example of code for this entry.
Can someone help me please?
Thank you
You can use the same graphic assets of basis for two projects, but the coding will be different for everyone. You must work on the project of a code at a time.
-
How to create dummy data with 1 TB
Hi Expert,
May I know how to create dummy data with 1 TB to test performance. ?
Respect of
Liang
what columns you want to include? Basically, you can generate as many lines as you like to connect by queries - something like:
create the table big_t
as
with
generator1 like)
Select rownum id
of the double
connect by level<=>=>
)
,
generator2 as)
Select lpad ('* ', 1000,' *') col1
of the double
connect by level<=>=>
)
Select g1.id
g2.col1
of generator1 g1
generator2 g2
;
Of course, it is not 1 TB, but you can change the number of levels. Who said: I think you need to find a sensitive table first structure.
-
How to share an app with preflight 2015?
How to share an app with preflight 2015?
All that you would like to share an application through preflight must be a 'user' on the project for that application. Thus, you can add a user who may not have 'view' permission, but as long as their Adobe ID is part of this project, this app will appear in their preflight application when connected with their Adobe ID
Basically, preflighting is associated with the Adobe ID. the user any project is associated with an ID Adobe ID will appear when this Adobe ID is registered to control upstream.
Hope that helps!
-Tommy
-
Hello
How to create a button with rollover that appears in a different place than the button when you move by using only the Muse (reversal may be a different shape and color of the button). I managed to do it using Photoshop and the separate layers and import it, but it is not a good solution. All suggestions will be welcome.
Thank you
You can try to use the widget of the Composition of the ToolTip. In this way, the trigger area is isolated and a "State of reversal" can be placed anywhere on the screen (compared to the trigger).
- Remove the two triggers additional default
- Set to display the targets on working capital
- Select hide all initially.
-
How to create a DVD with Media Encoder? Thank you!
How to create a DVD with Media Encoder? Thank you!
Export to mpeg2-DVD and use a design program like still to create DVD compatible files to burn to DVD.
-
How to create a window with its own window border other than the local system window border?
How to create a window with its own window border other than the local system window border?
For example, a border: a black line with a width of 1, then a transparent line with a width of 5. Inside, it's the content pane.
In JavaSE, there seems to be for the JFrame paintComponent() method to realize the effect.
I can't see what you're trying to do now: it's a little trickier. You need stage.initStyle (StageStyle.TRANSPARENT), and I think you have to imitate the transparent part of the border by the presence of a second vessel inside the root container, properly positioned.
Something like:
import javafx.application.Application; import javafx.application.Platform; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.AnchorPane; import javafx.scene.layout.StackPane; import javafx.scene.paint.Color; import javafx.stage.Stage; import javafx.stage.StageStyle; public class CustomBorderExample extends Application { @Override public void start(Stage primaryStage) { AnchorPane root = new AnchorPane(); root.setStyle("-fx-border-color: black; -fx-border-width: 1px; "); StackPane mainContainer = new StackPane(); AnchorPane.setTopAnchor(mainContainer, 5.0); AnchorPane.setLeftAnchor(mainContainer, 5.0); AnchorPane.setRightAnchor(mainContainer, 5.0); AnchorPane.setBottomAnchor(mainContainer, 5.0); mainContainer.setStyle("-fx-background-color: aliceblue;"); root.getChildren().add(mainContainer); primaryStage.initStyle(StageStyle.TRANSPARENT); final Button closeButton = new Button("Close"); mainContainer.getChildren().add(closeButton); closeButton.setOnAction(new EventHandler
() { @Override public void handle(ActionEvent event) { Platform.exit(); } }); primaryStage.setScene(new Scene(root, 300, 200, Color.TRANSPARENT)); primaryStage.show(); } public static void main(String[] args) { launch(args); } } -
How to create RAID 5 with 6 disks?
I'm new to vmware. My machine is currently running ESXi 4.1 but the RAID set up gives me no more disk space I was advice to remake the structure of the disc physically to have all 6 disks in RAID 5 and then reinstall ESXi. I'm doing, but I need a direction how to create RAID 5 with 6 disks. Can someone please help with this?
Thank you
SD
Assuming you are using the integrated Smart Array 6i controller it should without a problem. If you can get into the BIOS of conreollers, you can also boot from Smartstart CD and use the ACU (Array Configuration Utility). The ACU has the advantage that you can split the RAID in several logical drives. I usually create a small logical volume (~ 10GB) for the installation of the hypervisor (ESXi) and another large logical volume to the VMFS data store.
André
PS: When you respond by e-mail, please do not understand the original message.
-
How to create a table with two unique columns
How to create a table with two unique columns. I use the following syntax below and I get the error message such unique or primary key already exists.
create the table COPQ_WORKCELL_GOAL
(
Type_id varchar2 (4) NOT NULL UNIQUE,
Tyle_Location varchar2 (30) NOT NULL UNIQUE,
Type_Description varchar2 (20).
KEY elementary SCHOOL (Type_id)
);Use 1 or the other column type_id;
create table COPQ_WORKCELL_GOAL ( Type_id varchar2(4), Tyle_Location varchar2(30) NOT NULL UNIQUE, Type_Description varchar2(20), PRIMARY KEY (Type_id) ); Table created drop table COPQ_WORKCELL_GOAL; Table dropped create table COPQ_WORKCELL_GOAL ( Type_id varchar2(4) primary key, Tyle_Location varchar2(30) NOT NULL UNIQUE, Type_Description varchar2(20) ); Table created
-
How to create a shortcut with relative path
Hi all
I'm a Linux user, so I don't have enough experience to solve this problem.
How can I create a shortcut with relative path?
Usually it is easy to create a shortcut with the absolute path for example:
Windows accepts shortcut path with absolute c:\bin\app.exe, but he does not accept the following relative path:
.\bin\app.exeHi mbnoimi,.
Thank you for using the Microsoft Answers Forums!
To make a shortcut path parent here is a simple solution. Create a shortcut to cmd.exe running the start command to open the current directory. Then set the MDC in the
The shortcut properties.Follow these steps:
Make a new shortcut to: cmd.exe /c start.
Now, right-click on it and get the properties of the shortcut (shortcut tab).
The shortened full path must have been set to this:
%windir%\system32\CMD.exe /c start.Set the directory to "start in" (i.e. DLG) to be a relative path:
(Example for a shortcut on the desktop)
...\SendToClick on "change icon...". "and set" look for icons in this. "
"file:" to:
%SystemRoot%\system32\shell32.dlland press ENTER. Standard folder icon will probably be in the
bottom right.Now you can copy this file and simply change the "start in:" directory
to book new related shortcuts.NOTE: The steps above are just an example so try this at your own risk. And check if it works.
Hope this information was useful.
Let me know if it worked.
All the best!
Thank you and best regards,
R uma - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
How to create a DVD with DVD Studio Pro and an external DVD burner?
Hello
I am trying to create a DVD with DVD Studio Pro. My internal DVD drive no longer works. I have an external DVD burner - slim portable DVD writer. I create the project into DVD Studio Pro, and when in the program, it works fine when I "stimulate". Well, I can't burn it. When I look for the external DVD writer in my finder, it is not and I don't know how or where to select the option so it is programmed to burn the external DVD writer. Any advice? Thank you have a great week.
I found a thread that has addressed this issue, but does not help me to solve my problem. Meg the dog was told this to her in question written by Scott Stark. I tried his solution of generation and format, but after pressing the burn a window appears saying "insert disc please insert acceptable DVD recordable media." I tried to use another blank DVD, it did not help. I use Word for Word, I heard that those who are the best blank DVDs, you can buy. Thanks again for your time!
-
Urgent: how to create a shortcut with a relative path?
I put a set of files and folders nested on a server on a network location. (Use of office machines Vista; I don't know that the server is running. The files are a text file and two Office 2007 files). Users will copy this set-up files on their computer (there is a program of VBA macro in a Word document, they need). They need tomorrow (Friday) and the shortcut path gives me fits!
The hierarchy looks like:
MainDir
File.txt
SubDir1
Shortcut to the Word file
SubDir2
Word file
Excel fileI don't think even the paths associated with the shortcut until I looked a little deeper. Because I put all the files and folders together on my computer, when I did a drag - move in the folder on the server, the target properties and start in the shortcut always pointed at my computer! So now, I'm afraid that a user copy this on their machine will have a shortcut that points to ~ my ~ computer, instead of the file on their computer.
I deleted the shortcut located on the server and creates a new one from the Word file in the directory on the server. Better - I think - but it still points to the location of the server. And it is even more likely that, when the user opens the shortcut, it will try to open the file on the server, vice the file on their computer.
How can I create a shortcut to this Word file that will pick up the relative path from around where to reside? I can just click > properties and change the target and start in paths? Or do I need a VBScript or VBA?
I have to get this done fast! A kick - in the right direction is greatly appreciated.
Ed
Hi Ed,
It is not possible to create a shortcut with a relative path.
You can try the following allows to bypass and check if it helps:
Create a shortcut to cmd.exe running the start command to open the current directory. Then set the MDC in the
The shortcut properties.
a. make a new shortcut to: cmd.exe /c start.
b. now right-click on it and get the properties of the shortcut (shortcut tab).
c. the shortened full path must have been set to this:
%windir%\system32\CMD.exe /c start.
d. set the directory of "start in" (i.e. DLG) to be a relative path:
(Example for a shortcut on the desktop)
...\SendTo
e. click on "change icon...". "and set" look for icons in this file: "to: %SystemRoot%\system32\SHELL32.dll and press ENTER.
Standard folder icon will probably be in the lower right.
f. now you can copy this file and simply change the "start in:" to make new related shortcuts directory.
NOTE: The above steps are just an example, so try this at your own risk. And check if it works.
You can also read the following article and check:
Folder redirection fails when you specify the mapped network drive or the Environment Variable
http://support.Microsoft.com/kb/321805
You can check out the following link and also post your request in the Technet forum for further assistance:
http://social.technet.Microsoft.com/forums/en-us/winserverPN/threads
Hope this information is useful.
Maybe you are looking for
-
I have upgraded RAM on my W530 and it works in single channel mode. How to activate the dual channel in the BIOS? Here is the screenshot on my RAM http://imgur.com/ilbCUil
-
My computer keeps trying to install this update and it fails every day. Have no idea what to do. I tried the trouble shoot function. Do I need this? How to install? Here's the update. A security update for .NET Framework 4 on Windows XP, Windows
-
my daughter has an opliplex xp gx620 counter top. they never ran VirusControl. now it hangs after starting upward and says he has many viruses, even to use the cd to look viruses.it says there is a virus attached to the driver for the cd drive. How
-
Contact Technical Support. Do really use Logmein?
So I went on the Web site of microsoft ( https://support.microsoft.com/oas/default.aspx?&c1=509&gprid=11712&&st=1&wfxredirect=1&sd=gn ) for help with my computer. After having followed the steps to get help, I received help from cat online through "S
-
I was check my registry unread mail folder. I discovered that only some but not all e-mail accounts that have been accesed from my PC (all are hotmail accounts) have their own folder. Why is this?