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
Similar Messages
-
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.
PedroYou 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. -
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. mac152207To 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 -
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!
-
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 ) -
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. -
This has happened twice in the past week. When I create a new folder nested inside two other existing folders, another folder in another branch is renamed to the newly-created folder's name. The folder that is being renamed is inside the Links folder. (I am not expecting an answer. I cannot find another place where I can report an issue with the browser.)
See http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
-
Local Root Folder - One Level To High ???
Hi,
I'm not sure how to explain this, but I will try.
When I choose a new local root folder when managing a new site, and lets say I made the folders in advance - desktop>website>images, and when I then choose my local root folder, I'm selecting the folder website press open and then save/select, but then it only saves as desktop while it should be desktop>website, it's the same when I choose the default images folder, I select the images folder press open and save/select, and same thing, it will choose desktop>website while it should be desktop>website>images.
So to choose the right folder I have to either go one folder extra deep (if any) or write the folder name myself. I have looked around the settings but nothing seems to have anything to do with this, and my searches on Google didn't bring any results, so I hope one of you would be able to help me.
Thanks
Kim Celinder
PS. I use Dreamweaver CS3, and Vista Home Premium x64I am also very frustrated! I am running CS4 on Vista and have the same problem.
I am in the process of emailing tech support; so far I have been told to run repair on my system or follow Adobe's tutorial for setting up a root folder. Well... I have already completely re-installed the software (which according to the tech where I work should be better than a repair?)... but I will try that... and I DO know how to set up a root folder so that is not the problem.
I have one other major issue re my CS4... my help files are not there! I am not using upgrade software (which is what I thought could be the problem-as an upgrade may not include some things from the previous edition you have installed on your computer)... Adobe gave me the same suggestion to run repair...
I will respond again if the repair does help. -
How to make New Folder command available as No as the default value for document libraries
Hi, is there a way to make this option as No as the default value instead of Yes, for all new document libraries? Perhaps with a powershell command for an entire site collection?
Hi Cartin,
I would suggest to create a library template of an empty library with this settings as NO. Use this template for creating new libraries.
For updating existing libraries you can use:
$Site = Get-SPSite http://Site
$ListName = "library Name"
$Site | Get-SPWeb | ForEach-Object {
$List = $_.Lists[$listName]
$List.EnableFolderCreation = $false
$List.Update()
$Site.Dispose()
You can modify the above script for you need. -
How can I tell my script to make a new folder at the same level as another folder?
for example:
I have myFolder which is
"Photo [Work]:Users:peter:Documents:image files BU:renumbered files:62199L:RE-labeled JPEGs:"
and I want to tell the script to make a new folder at
"Photo [Work]:Users:peter:Documents:image files BU:renumbered files:62199L:"
How do I do this if my script only knows where myFolder is?
Pedro ParamoHi pedroparamo
by using MYFolder as the path, like below, "make new folder at MYFolder"
property Folder_name : {"NEW FOLDER"}
set MYFolder to "Macintosh HD:Users:kevinparrott:Desktop:test:"
tell application "Finder"
make new folder at MYFolder with properties {name:Folder_name}
end tell
Budgie -
If I import files from my hard drive to a catalog, does it index the original copy or make new one
The one exception to MichelB's answer is if you use the "from iPhoto" command in the mac organizer. In this case the organizer does copy the contents of your iphoto library, since if it wrote any information into that library it could easily corrupt it and cause the loss of the photos it contains.
-
How can I make a new folder from the save as window in photoshop cc?
Did I set something wrong in my preferences? There used to be a box in the lower left had corner to make new folder?
cmd-shift-N gives me a new layer on a Mac OS 10.10.2
-
Apple Script won't create new folder
Hi all,
First of all, let me explain that in no particular way I am any good with applescript. I find it confusing at the best of times. I've got a bit of code that will check to see if a new folder is created in a specific location. If a new folder is created, then it will copy the name of the folder and create a new folder with the same name in a different place. The reason for this is that I separate my file types (I'm a photographer) and I keep my RAW files in one folder, my PSD files in another, my JPEGs in another and so on. The current code I have worked up until I installed Yosemite as well as Server on my mac mini. Here's the code:
on adding folder items to this_folder after receiving added_items
set p to POSIX file "/Volumes/Projects/1. Raw"
try
tell application "Finder"
repeat with item_ in added_items
if kind of item_ is "Folder" then --if its a folder then make another in Ra
make new folder at p with properties {name:item_}
end if
end repeat
end tell
on error
display dialog "Error occurred"
return
end try
end adding folder items to
The action is set to the JPEG folder, where an application automatically adds a folder (for this example, I'll use "z. test").
z. Test is detected in the JPEG folder, and then the folder is replicated across to the other separating folders ready for when any new files are added. Trouble is, the error occurred dialog box shows up. I have the appropriate permissions for the hard drives that the folders reside on, and are replicated to the subfolders too.
Is there anyway of finding out what the error is that's occurring? Or am I missing something since upgrading to Yosemite/Server? Any help would be most appreciated!
Ian
ThHi,
You can't rename an item with an object (the item_ is an object of type alias), use the name of item_
To know the error, use the parameter in on error block.
Try this :
on adding folder items to this_folder after receiving added_items
try
set p to "/Volumes/Projects/1. Raw" as POSIX file as alias
tell application "Finder"
repeat with item_ in added_items
if kind of item_ is "Folder" then --if its a folder then make another in Ra
set tName to name of item_
make new folder at p with properties {name:tName}
end if
end repeat
end tell
on error err
activate
display dialog "Error occurred : " & err
end try
end adding folder items to -
Applescript to create subfolders in a new folder
Hi there,
I have a bit of programming experience, but none with Applescript. I've tried to see if I can find someone else looking to do something similar, but so far haven't been able to.
Anyways! I am wanting to create an AppleScript --> Folder Action that will watch a folder, say, folder "ABC". Anytime a new folder is created within "ABC", let's call it "XYZ", I want the script to create a series of predetermined folders within "XYZ". Sounds simple enough, right?
Any help would be greatly appreciated. Thanks!
JustinOk, so the "More Like This" thing on the right did a better job of searching than I did...
I managed to find something similar enough to what I was looking for. Here's what I came up with:
property folder_names : {"Folder One", "Folder Two", "Folder Three"}
set thepath to "Macintosh HD:Users:justin:Desktop:test"
set project_name to text returned of (display dialog "Project code?" default answer "")
tell application "Finder"
set main_folder to (make new folder at thepath with properties {name:project_name})
repeat with this_name in folder_names
make new folder at main_folder with properties {name:this_name}
end repeat
set current view of container window of main_folder to list view
end tell
You would think that after how ever many years of searching I would have been able to find this earlier! -
I am trying to write a folder action to take care of company time sheets. I can write one to duplicate them but, I would prefer to make an alias instead. I make new time sheets with a spreadsheet and when they are ready they are saved to a folder in Users:xxx:Documents:Time Sheets. When added to this folder I would like an alias left in a folder on the desktop. I tried this:
on adding folder items to this_folder after receiving these_items
tell application "Finder"
make new alias (added_items) to folder "Macintosh HD:Users:xxxx:Desktop"
end tell
end adding folder items to
but it doesn't work. Could someone point me in the right direction.
Mac Mini 1.66 CoreDuo Mac OS X (10.4.9) G3 iMac
Mac Mini 1.66 CoreDuo Mac OS X (10.4.9) G3 iMacUsing 'path to Desktop' or 'path to Desktop from user domain' will make the script more portable, since it will get the path to the desktop of whatever user is running the script. You can also get rid of the outer 'tell Finder' block - most of the time if there is only one statement you can skip the 'end tell'. For example, the following are equal:
<pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">tell application "Finder"
make new alias file to these_items at MyFolder
end tell
tell application "Finder" to make new alias file to these_items at MyFolder
</pre>
G4 Digital Audio 1.4GHz Mac OS X (10.4.10)
Maybe you are looking for
-
Font problems after 10.6.2 upgrade
Hello! Just after upgrading to 10.6.2, al the iwork documents (Pages and Keynote) that use Time New Roman (originally Office documents) are unreadable due to a kerning problem that affects only this font (that I know of). Did somebody had the same pr
-
On my THIRD iPod Touch aka " Mr. Freeze" Please Help!!!
I got my first 16GB iPod touch back in November and it was GREAT! I never had any function problems at all. It always tuned on , turned off , charged , synced , slept , and played just as it was supposed to. Then after about 2 months the left channel
-
What is going on!?!?
Why does iPhoto keep attempting to republish my albums randomly!??! I made one gallery and after several unexpectely quits and what not and several complete from the beggining repulishes(it just started on its own didn't check to see what was already
-
Photoshop CS6 transparent mask causing problems when saved as RGB Tiff and placed into CS5 Indesign
Is anyone aware of a gray/black halo around feathered transparency objects. The halo occurs where the solid area of pic feathers to the transparent. NOTE: Image looks fine in Photoshop(CS6) but when placed as an RGB TIFF into Indesign (CS5) a black h
-
Why won't YouTube play my Apple TV? It just displays a constant loading circle.
I've seen this question asked before with no replies. Does anyone know? I have subscriptions that play fine on my iMac, iPad, iPad Air and iPhone, but in the last couple of months I only get the loading circle on my AppleTV. Thanks.