How would I create a set of folders in the /tmp directory using AS?

I have a set of folders that whenever I restart my machine they get removed (they're in the /tmp directory as they are temporary cache files).
Right now I'm manually re-creating those folders whenever I restart.
So how could I automatically create the set of folders on startup?
I need to create:
/tmp/fcgi_ipc/
/tmp/fcgi_ipc/dynamic/
I figure I can create an bit of AppleScript and set it to run on startup...but I'm totally clueless on exactly what that AppleScript needs to be.
I've tried various "make new folder at ____" but nothing is cutting it.

Consider ...
set base_Path to "/private/var/tmp/" -- path to 'tmp' folder.
set base_Folder to "fcgi_ipc" -- Desired base folder.
set sub_Folder to "dynamic" -- Sub-folder of base folder.
try -- Try handles 'folder already exists' error.
do shell script ("mkdir " & base_Path & base_Folder) -- Create base folder.
end try
try -- Try handles 'folder already exists' error.
do shell script ("mkdir " & base_Path & base_Folder & "/" & sub_Folder) -- Create sub-folder.
end try
... Naturally, you can hard code it, as well ...
try -- Try handles 'folder already exists' error.
do shell script ("mkdir /private/var/tmp/fcgi_ipc/") -- Create base folder.
end try
try -- Try handles 'folder already exists' error.
do shell script ("mkdir /private/var/tmp/fcgi_ipc/dynamic/") -- Create sub-folder.
end try
... or ...
do shell script ("mkdir -p /private/var/tmp/fcgi_ipc/dynamic/") -- Create all folders at once.

Similar Messages

  • How would I create buttons states for MCs I am creating abstract MCs

    I am creating a generic website that would have abstract MCs that would load jpg or TXT fields for the user interface to allow for fast updates to the site. The MCs that would make up the user interface would be empty and load things into it using XML or PHP later on. How would I create button states for the user interface MCs.  I started creating a function for every MC button state but I thought there might be a more efficient way.
    would creating a array help in this case?
    and is using URLRequest the way to link to pages with in a movie well the flash movie that is the site it's self?
    /*---------------------------- THE START OF MY ACTION SCRIPT ------------------------------*/
    var waywardLogo_mc:MovieClip = new MovieClip;
    var theCollection_mc:MovieClip = new MovieClip;
    var newsPage_mc:MovieClip = new MovieClip;
    var whatthe#$@!doyouwant!?_mc:MovieClip = new MovieClip;
    /*---------------------------- onOver ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    newspage_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    /*---------------------------- onOut ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    newspage_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    /*---------------------------- onClick ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.CLICK,onClick);
    theCollection_mc.addEventListener(MouseEvent.CLICK,onClick);
    newspage_mc.addEventListener(MouseEvent.CLICK,onClick);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.CLICK,onClick);
    function onOver(event:MouseEvent):void
    event.target.alpha = .5;
    function onOut(event:MouseEvent):void
    event.target.alpha = 1;
    function onClick(event:MouseEvent):void
    event.target.URLRequest("");
    /*---------------------------- onover, onOut, onClick buttonModes ------------------------------*/
    waywardLogo_mc.buttonMode = true;
    theCollection_mc.buttonMode = true;
    newspage_mc.buttonMode = true;
    whatthe#$@!doyouwant!?_mc.buttonMode = true;

    click insert/new symbol, tick movieclip, assign a name, tick export for actionscript and in the class textfield enter a name (say ButtonClass) and click ok.
    attached to the first frame of your new movieclip, type stop() in the actions panel.  put whatever graphic you want on-stage for your button's up stage.  create another keyframe, label it "over" and put whatever graphic you want for button's over state on-stage.
    in a layer above those graphics, you'll probably want to add a dynamic textfield so each of your buttons can have different text.  assign the textfield and instance name (say tf) and extend its timeline to the last frame of your movieclip button.
    then when you want to create a button, on your timeline you can use:
    var b:ButtonClass=new ButtonClass();  // these two lines need to be entered for each button
    buttonhandlerF(b,someX,someY);
    //-------code between dotted lines only needs to be entered once no matter how many buttons you add --------------------
    function buttonhandlerF(b:ButtonClass,x:Number,y:Number){
    b.addEventListener(MouseEvent.MOUSE_OVER,overF);
    b.addEventListener(MouseEVent.MOUSE_OUT,outF);
    b.x=x
    b.y=y
    addChild(b);
    function overF(e:MouseEvent){
    e.currentTarget.gotoAndStop("over");
    function outF(e:MouseEvent){
    e.currentTarget.gotoAndStop(1);
    //-------code between dotted lines only needs to be entered once --------------------
    // you'll also want to create a click listener and listener function
    the code between the dotted lines is amenable to being added to a ButtonClass.as class file if want to expand your capabilities.

  • I recently Brooke the screen on my iPhone 5. I need to cases my data and would like to remotely set up iCloud on my broken 5 using my iPad. How would I go about this?

    I recently Brooke the screen on my iPhone 5. I need to cases my data and would like to remotely set up iCloud on my broken 5 using my iPad. How would I go about this?

    Took my phone to the Apple store this week and they told me it was a hardware/screen malfunction. They replaced the screen for free since it was under warranty. Now it works fine again!

  • How do I create or set up a folder for my emails for different customers

    How do I create or set up a folder for my emails for different customers?

    Possible with an Exchange or IMAP account, not with a POP account.

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • Help! How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?

    I am a new Indesign user and I have been working with GIMP for the last year creating single colour print-ready PDFs. But now I need to create a document with a FOGRA27 CMYK colour profile and a resolution of at least
    How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?
    I can import the PDF by creating a new document and finding the PDF in places, but it's bad quality.
    The only colour profile I can find under View - Proof Setup is FOGRA39, but I need FOGRA27!
    Help help help, I need to get these files printed in two days!
    Thanks so much..
    xx

    Proof Colors doesn't change the file's color management, it just lets you see what the color values would look like if they are printed unchanged on different output devices. If you want to actually convert the color from one CMYK space to another, it's probably better to do that in Acrobat—Tools>Print Production>Convert Colors.
    There's very little difference between Fogra27 and Fogra39—Fogra27 allows more total ink 350 vs. 330.
    There's nothing you can do to improve the quality of low res images

  • How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    Hi Ed
    Thank you for contacting me, however I already know how to save text to
    audio files via timeline using the Export feature.
    So my question was not entirely clear and I apologize for that.  To explain
    further, whenever I save a text to audio file, captivate takes me to a
    default save as folder where I then have browse back to my production
    folder where I am keeping all my Txt to Aud files.  This is very tedious
    process when you have alot of files to save.  So my question was is there a
    way to configure captivate so I can make my production folder the default
    file for whenever I save a Txt to Audio file through Export feature that
    the system automatically takes me to that production folder, and I am
    spared the long tedious process of saving the file manually to the
    prodcution folder I want.
    I have copy the pathway to the production folder in the URL filed in the
    Save As dialoge box and that workaround as cut the work down but I still
    have to paste that URL field to point the file to the right folder. So it
    would be nice if I could do everything automatically.  Microsoft makes this
    capability in their MS Office applications, so I was thinking Adobe might
    do the same thing.  Your help with this would be appreicated,
    Thanks
    Merrill Roberts
    Sr. Training Specialist
    SunGard Availability Services
    Direct 925-831-7730
    Mobile:415-215-9280

  • How would one skip from point to point that the video is changing while editing.

    How would one skip from point to point that the video is changing while editing, like if a certain set of pixels changed to white, and then mark it.?
    Basically, I have a set camera, and when certain objects change color I want to mark it.   Think of a baseball flying through the air off a pitchers hand, and be able to skip to each point the pitcher is in that position.

    The only method of this level of content analysis I'm aware of is with your eyes.
    You'll just have to wacth the video to find those parts.

  • How do I create a Apple ID on a iPhone 5s without using credit card info??

    How do I create a Apple ID on a iPhone 5s without using credit card info?
    Help??

    what do you mean it doesn't help? did you follow the steps stated below
    Creating an account on iPhone, iPad, and iPod touch
    Open the App Store on your device.
    Find a free application on the App Store.
    Important: Before proceeding to the next step, you must download and install the free application by tapping Free followed by tapping Install App.
       Tap Create New Apple ID.
    Choose your country, and then tap Done.
       You'll need to read and agree to the iTunes Store Terms & Conditions. Tap Agree located at the bottom of the page to continue.
    Enter your email address, security questions, birthday, and create your password.
    You also can enter an optional rescue email address. If you frequently change email addresses, it is recommended that you add a rescue email address. Learn more about the rescue email address.
    Once you are satisfied with the information entered, tap Next.
    Select None as your payment option.
       Continue to fill out the required email, address, and phone number fields. Tap Next.
    You'll then see a screen that says "Verify your Account." Tap Done, and check your email for a verification email from iTunes Store.
       Open the email, and click the link enclosed in the email to activate your account.
    Once you tap the link, the App Store should automatically open and prompt you to sign in with your account name and password.
    Tap Sign In, and you will see a thank you screen.
    You have set up your account successfully, and you can start enjoying iTunes, iBooks, and the App Store on your iPhone, iPad, and iPod touch.

  • HT2731 How do i create an apple id without providing the billing address..as i done have a credit card!

    I dont use a credit card so how can i create an apple id withoud providing the billing address?

    There are instructions on this page for creating a new account (it won't work with an existing account) without giving a credit card number : http://support.apple.com/kb/HT2534 e.g. select a free app in the store and click on 'create Apple id' when 'buying' it

  • How do you create a new apple id on the iphone

    how do you create a new apple id on the iphone 4?

    Why do you want to do that?

  • How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios?

    How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios? I have all the apps in Creative Cloud by the way.

    If you already purchased it with the same Apple ID, then you will not be re-charged.

  • It wants to verify my account and won't take the password, how can I create a new one or verify the existing one?

    I cloud wants to verify my account and won't take the password, how can I create a new one or verify the one it won't take?

    If you can't remember the password, reset it at...
    iForgot.com

  • How can I edit my website from another computer? and how can I create a new website next to the one, I have already? Can anyone help, please?

    How can I edit my website from another computer? and how can I create a new website next to the one, I already have? Can anyone help, please?

    Move the domain.sites file from one computer to the other.
    The file is located under User/Library/Application Support/iWeb/domain.sites.  Move this file to the same location on the other computer and double click and iWeb will open it.  Remember, it is your User Library that you want and not your System Library, as you will not find iWeb there.
    Just create a new site on the same domain file and it will appear below the other site.  If you want them side by side then duplicate your domain file and have one site per a domain file and they can then be side by side.

  • HT201394 I just updated my iPhone 4s to iso 8.2  How do I create a pass code to open my phone without using my password every time?

    I just updated my iPhone 4s to iso 8.2  How do I create a pass code to open my phone without using my pass word every time?

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

Maybe you are looking for

  • Screen Size When Connecting iPad2

    Hi, I have connected my Apple TV to an XGA projector for us in my classroom. When I use the built in Apple TV options (like Netflix) everything works fine. When I connect my iPad2 via AirPlay the projection is reduced to about 2/3 of the available si

  • Delete an OM infotype

    How to  delete an OM infotype clearly? For example, I created an OM Infotye 9190, But when i delete it using T-code PPCI, the HRI9190 structure stills to be there. Thanks for all your help. victor ying

  • HTTP_server link does not show in Application server control...

    Hi, I'm trying to configurate OAS 10g and HTTP Server, when start OAS all the proccess start up, including HTTP Server, but then when try to configurate HTTP_server in Application server control I can't access it, because this component has no 'link'

  • Web gallery syncing (Aperture 2)  - Why does it resend all images?

    Hi All, I have a number of web galleries, many of which I like to continually update as I make new photos. But when, for instance, I want to add a single photo to a gallery that already contains 50 images, I tell it to synchronize the gallery, it upl

  • PDF type files

    I've tried downloading but I think my device does not support and cannot display PDF file formats. Iam on BB 8120 pearl. Can someone help me out here.