Move up one level in path and make new folder

How do I get applescript to make a new folder one level up from myFolder i.e.
set myFolder to ¬
(choose folder with prompt "Where are the image files for which you want to change exif data ?") as reference
make new folder at myFolder with properties {name:"Gallery JPEGs"}
makes a new folder inside myFolder, but how do I tell it to move up one level from myFolder and make a new folder?
Thanks.
Pedro

You can use statements such as the following ones:
*tell application "Finder" to make new folder at container of myFolder with properties {name:"Gallery JPEGs"}*
or
*tell application "Finder" to make new folder at container of container of myFolder with properties {name:"Gallery JPEGs"}*
and so on…
And if you want the folder “myFolder” to be contained by the folder “Gallery JPEGs”, use the following statements:
*tell application "Finder"*
*make new folder at container of myFolder with properties {name:"Gallery JPEGs"}*
*move myFolder to the result*
*end tell*
Message was edited by: Pierre L.

Similar Messages

  • Tell AS to make new folder one level up

    How do I get AS to make a new folder one level up from myFolder i.e.
    set myFolder to ¬
    (choose folder with prompt "Where are the image files for which you want to change exif data ?") as reference
    make new folder at myFolder with properties {name:"Gallery JPEGs"}
    makes a new folder inside myFolder, but how do I tell it to move up one level from myFolder and make a new folder?
    Thanks.
    Pedro

    "AS?" What's that?
    myFolder? What application are you using? I think you are in the wrong forum.
    Shane

  • How do i transfur songs from old computer to new one and make new computer the "home" the main computer please on ipod touch

    how do i transfur itunes from one computer to another and use new computer only as main one

    - Transfer iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    - Connct the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and then clicking on Backup
    - Restore the iPod from that backup.

  • Why does Illustrator CS4 save pdfs with clipping paths and make rasters of gradient areas

    I am on a IMAC and upgraded to 10.6.8 Jan 2014. I am using CS4 Illustrator to create with. When i save my work as a pdf then reopen the pdf in Ill to make changes, the whole page has:
    A.) Multiple clipping paths around it
    B.) Most text has now become outlined. Not editable anymore.
    C.) Gradient areas have multiple clipping paths of the single gradient area
    D.) The gradient areas now become rasterized.
    This is very frustrating as now all of my marketing files, some 300+, are worthless. I don't know where to look anymore to find the problem.
    Please help.
    Thank you very much

    John,
    I have the presets as you have shown. I had been editing the supplied items as you suggested. Then figured i should ask the questions of those who are better than I.
    But still a bit confused as to why the new save places clipping paths around the document.
    Thank you John and Monika for your help.
    why does Illustrator CS4 save pdfs with clipping paths and make rasters of gradient areas
    created by John Mensinger in Illustrator - View the full discussion
    I do a save as "pdf" in the format pull down tab. I save to a folder on the hard drive. Where is the "Illustrator editability" check box? I presumed it is in Acrobat some where
    but i seem to be lost.
    It is in Illustrator's Save Adobe PDF dialog, which pops up before the saved file is written.
    https://forums.adobe.com/servlet/JiveServlet/downloadImage/2-6439399-644928/450-397/Untitl ed-1.jpg
    Sorry i didn't mention this, but this seems to have occurred when using images and text from provided pdfs.
    That's a critical fact. If you didn't do the original save, the above is moot, and it's too late to exercise any control over the save process. Someone else failed to save for editability. The only thing you can do is clean up/repair the content, (release clipping masks, rebuild rasterized elements, expand objects, etc.), and save correctly as AI. Then, if necessary, re-save as PDF with the correct settings.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6439399#6439399
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Illustrator by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I downloaded a movie on one of my computers, and yet I can't see it in my purchases and I can't download it on any other devices. Any suggestions?

    I downloaded a movie on one of my computers, and yet I can't see it in my purchases and I can't download it on any other devices. Any suggestions?

    Films will only show in your library if you've downloaded it on that computer or copied it from another computer. You checked the Purchased link under Quicklinks on the right-hand side of the store homepage to see if it shows there for redownloading on that computer
    If it doesn't show there then you can copy it over from the computer that you downloaded it on e.g. via home sharing : http://support.apple.com/kb/HT4527 (that page refers specifally to music, but it works for other content types as well).
    Or you can right-clidck (control-click on a Mac) on the film in the iTunes library that it is on and select 'show in explorer' ('show in finder') and copy it to, for example, a flashdrive, and use that to copy it onto the other computer's iTunes library (File > Add To Library)

  • How do u make new folders in mail when I press edit only move delete or mark comes up nowhere can u make new folder

    I can't make new folder in mail on my normal acc or icloud

    If you are in desperation for folders you could set up an imap account such as Gmail or Hotmail, create whatever folders you want, add the account to your iPad, send the emails you want to categorise to your new email address and manage them from within. You could also consider gradually making the new email address your future one thus eliminating the need to be always forwarding and thus creating duplicates in a sense. Might be a bit clumsy but it is a work around!

  • I need to reinstall my original factory disc and reset my computer to the beginning. It currently has lion. Do I need to erase my HD first to clear and make new room for the install disc.

    I need to reinstall my original factory disc and reset my computer to the beginning. It currently has lion. Do I need to erase my HD first to clear and make new room for the install disc.

    Prepare Your Mac for Sale
    Boot from the OS X Installer Disc One that came with the computer.  After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.  After DU loads select the startup volume from the left side list then click on the Erase tab.  Set the format type to Mac OS Extended (Journaled) then click on the Options button.  Select the one pass Zero Data option and click on the OK button.  Then click on the Erase button.
    Note: You can skip the Zero Data option if you are not concerned about removing sensitive personal data from the hard drive.  If you choose to skip this part of the process then it is possible for others to recover data from the hard drive.  The Zero Data procedure will prevent others from getting access to your personal information.
    This process will take 30 minutes to several hours depending upon the size of the hard drive.  After formatting has completed quit DU and return to the installer.  Now complete the OS X installation.  At the completion of the installation do not restart the computer.  Instead just shut it off.  The next user will be presented with the Setup Assistant when they turn on the computer just as it would if new out of the box.

  • I authorized and dled ITUNES to the new pc.  Well i would like to know where is all my songs i purchased? I want to hear them on this pc, i bought them so where are they and how do i get them on here so i can buy new songs and make new playlists?

    I authorized and dled ITUNES to the new pc.  Well i would like to know where is all my songs i purchased? I want to hear them on this pc, i bought them so where are they and how do i get them on here so i can buy new songs and make new playlists?

    They will only be where you put them.  They do not magically appear in new places.
    Have you copied them from your old computer to your new one?

  • Photoshop cc can't open and make new documents.

    I'm using adobe creative cloud and photoshop cc.
    When I run the Photoshop cc, it can't open and create new documents.
    Open and make new documents Photoshop don't work so i terminate a photoshop cc use windows task manager.
    I use windows7 ultimate k on lenovo x220t.
    I uninstall the Photoshop cc and install again but symptoms refeat.
    Please give me good opinion.

    You have permissions issues with your user folder and the location where the PS swap files are stored. You need to fix that part...
    File Permissions Stuff
    Mylenium

  • Make.New.Folder [JS] (mac1522 is old) my new id (mac152207)

    Hello Sir, (Bob Levine, Peter Spler, Jongware)
    I am really sorry about this. I am forgotten my password so i am using new id.
    My question Make new folder other System it is not part of (by) indesign. Its is part of automation. I have all system (IP, Users name, password). Sir my job is create proper folder structure one by one my colleague system. So i want need your help.
    My old query =>
    Hi all,
    How i can new folder on other system by ip. My system ip like this 20.20.20.84 but i want make new folder this ip 20.20.20.86. You have any Java/Apple script for this.
    my both mac connf. Mac OS X 10.6.8
    thank you so much
    Regard ~Mac1522~
    Thank you so much
    Regard. mac152207

    To make a new folder you need to provide a colon delimited string as an alias with a name property something like:
    make new folder at alias "AP0015:Produce:Fruit" with properties {name:"Apples"}
    which would make a folder named Apples inside a folder named Fruit inside a folder named Produce on AP0015
    Here's a commented script which should work:
    tell application "Finder"
      --set a time out in case the server is not available
              with timeout of 20 seconds
                        try
      mount volume "AP0015" on server "20.20.20.74" as user name "AP0015" with password "abc"
                        on error
                                  display dialog "AP0015 is not Online"
                        end try
              end timeout
      --the path to the folder where the new folders will be created
      --in this case it's the root of the AP0015 server
      --the path to the destop would be "AP0015:Users:AP0015:Desktop:"
      --don't forget the colon at the end of the string
              set baseFolder to "AP0015:"
      --the name of the new container folder
              set bfName to "New Jobs"
      --a list of the sub folders to create
              set subfolders to {"Art", "Font", "MSP", "Sample", "Version_01", "Xml"}
      --make the container folder if one doesn't already exist
              try
      make new folder at alias baseFolder with properties {name:bfName}
              on error
                        display dialog "A Folder at " & baseFolder & " named " & bfName & " Already Exists"
              end try
      --loop through the sub folder list and make the subfolders
              repeat with i from 1 to number of items in subfolders
                        set subname to item i of subfolders
      make new folder at alias (baseFolder & bfName) with properties {name:subname}
              end repeat
    end tell

  • Can't make new folder in FireFox Bookmarks

    When in FireFox I go to Bookmarks -> Organize Bookmarks -> Bookmarks Menu -> Organize -> New Folder and make new bookmark folder, it appears. Then, I move some existing bookmarks into it.
    Logout FireFox, start it again. This bookmark folder is absent.
    What's wrong?

    Hi Ang,
    Sorry, I couldn't try your script until I got home from work today, and.... it works. (Thanks... I'll mark my question "answered").
    Now what puzzles me is why this works when the simpler form did not.
    Some extra info: If I used Script Editor to record a script in the Finder to create a new folder, this is what I got before I ran your script:
    <pre>
    activate
    select window of «class desk»
    make new «class cfol» at «class cfol» "Desktop" of «class cfol» "brendan"
    of «class cfol» "Users" of «class sdsk» with properties {name:"untitled folder"}
    </pre>
    But now, after running your script, the original script now works!! I'm completely bamboozled.... but well done anyway.

  • Make New Folder

    Hi all,
    How i can new folder on other system by ip. My system ip like this 20.20.20.84 but i want make new folder this ip 20.20.20.86. You have any Java/Apple script for this.
    my both mac connf. Mac OS X 10.6.8
    thank you so much
    Regard ~Mac1522~

    I agree it may not be possible, but again I'm reeading between the lines to presume if the OP wants to create a folder on another system he has a method for logging on to that system.
    I run peer-to-peer with my various desktops and laptops here, and I can set them up to allow me to have access anywhere inside my network, but no, you wouldn't be able to get in and create folders from outside my network without my permission (which you ain't going to get, even though we are buddies )

  • I move my videos from camera roll to a new folder. After i turn off & on my phone, the videos disappears. The videos are very important to me. Please please help. how can i retrieve?

    i move my videos from camera roll to a new folder. after turn off & on again my phone, the videos disappears. the videos are very important to me. Is there any way i can retrieve it? please please help. thanks.

    Photo Stream is not a backup.
    Photo Stream has a limit so is temporary.
    iTunes does not handle the import of photos/videos from any digital camera including from the iPhone's Camera Roll.
    Photos/videos in the Camera Roll can be imported by your computer as with any other digital camera.

  • Tips on avoiding hard coded paths and make a java app platform independent

    HI all,
    I would like to gather some tips on how to avoid hard coded file paths, which are plenty in the application I work on and which I inherited from previous programmers.
    Also, when deploying to the production server, my app goes from a Windows platform to a Linux machine.
    I am curious to know what tricks and tools other programmers find useful in similar contexts.
    I am sure many of us would benefit from the discussion.
    Thank you !

    Actually, Java does this for you; you can use unix-style paths and they will still work, even on Windoze. To wit:
    public static void main(String[] args) {
            File f = new File("/");
            System.out.println(f.getAbsolutePath());
    }Yields: C:\
    public static void main(String[] args) {
            File f = new File("/Program Files");
            System.out.println(f.getAbsolutePath());
    }Yields: C:\Program Files

  • How do I take one of my pics and make it my wallpaper?

    I'd like to edit one of my pics and use it as a wallpaper. How do I get it the correct size so that it's not stretched and squashed, or tiled?
    I appreciate your help. Please type slow... I'm a new convert!
    Trinity

    Select the photo you want to use as wallpaper.
    In the Share menu, choose Desktop.
    iPhoto will fill the screen and scale the picture to fill the screen with no squashing, stretching or tiling in weird ways.

Maybe you are looking for

  • Target disk mode with external hard drive?

    Hi all, I have a very annoying problem. I've just bought a new Mac Mini, previously I had an iBook G4 600 (about 6 years old). My Mac mini works perfectly, but... 1) I don't want to copy everything over from the iBook with Migration Assistant, I'd ra

  • Recovering photos from iOS back to Mac or windows

    hi, my wife and I were recently burglarized and the robbers got both our macbook pros, which were not backed up they they did not get our iPads or iPhones, however. i sync all my photos on my computer to both my iPad and iphone, is there a way I can

  • System Copy in MSCS environment

    Hi all! We are in the process of upgrading our R/3 4.7x200 system to ERP2005 unicode. The upgrade and unicode conversion of Dev and Test have been successful, and now Production is next. By the way, we are not doing a combined upgrade and unicode con

  • Copied query running indefinitely.

    Dear All, I am facing a strange issue. I have a query say A. On execution of the query it works fine and displays the results. When I save this query as B and execute it, it does not display any result. The query executes indefinitely. In SM50 the st

  • Sample code to download and open an Asset

    For anyone who wants to download an asset from the web and load it into your Adobe application, this is how I did it: // .js var TMP_FOLDER="/tmp/com.mb.extension/"; var doOpen = function(uri) {           var xhr = new XMLHttpRequest();           xhr