Go Back   The macosxhints Forums > OS X Help Requests > AppleScript



Reply
Thread Tools Rate Thread Display Modes
Unread 11-12-2014, 07:55 PM   #1
ftrobaugh
Registered User
 
Join Date: Nov 2014
Posts: 1
Using Automator to move files one folder up

Greetings,

I would like to create a workflow that selects all the items in a folder and moves them one folder-level up.

I have, I believe, figured out all the selection and moving steps, but I cannot figure out how to specify the directory -- Automator, as is, seems to only allow me to specify a fixed path, not a relative path. I suspect I need to use an Applescript module in the workflow, but I don't know how.

I want to start with this:

PARENT_FOLDER
CHILD_FOLDER
FILE1
FILE2
:
:
FILE99

and end with this:

PARENT_FOLDER
FILE1
FILE2
:
:
FILE99
CHILD_FOLDER


Also, if someone wanted to tell me how to delete CHILD_FOLDER after the move, I wouldn't say no.



Thanks,

Ted
ftrobaugh is offline   Reply With Quote
Reply

Tags
applescript, automator, relative path


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 08:57 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.