Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie problem - sorry for the long question



> 
> Message: 2
> Date: Mon, 28 Mar 2005 13:47:12 -0600
> From: Jesus Garcia <email@hidden>
> Subject: newbie problem - sorry for the long question
> To: email@hidden
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
> 
> Hi,
> I am re-writing an archive utility I had created for my pre-press
> department in their old red hat 7.2 server.
> I'm using AppleScript in Xcode...to have my cute little buttons, etc...
>   let me set the example of what i want to accomplish
> --------------------------------------------------
> 
> Server 1 has the job files
> Server 2 has the ripped files
> 
> Both servers use their job numbers + client names in the folders
> 
> I need to find both and put them on a folder called "TOBACKUP" in
> Server 1
> 
> delete the ripped files from server 2
> -------------------------------------------------
> 
> Where I am so far:
> 
> I got a button that finds the job number ("move every folder of
> a_folder whose names begin with j_num to b_folder) where j_num is the
> job number.
> 
> I have that...it mounts the server 1 and moves the folder
> 
> now I'm stuck on the following:
> 
> I need to create in the newly moved folder a new folder named
> "brisque_files" , but the Finder is giving me a "can't get folder of
> folder, etc'..
> 
> My full code and screenshots are available if somebody wants to help
> me...


I don't know what your background is, but I find it more convenient to do
filesystem housekeeping type stuff through the shell with AppleScript's "do
shell script" command.  There is an excellent web page on Apple's
Applescript site with info on do shell script.  That, combined with
knowledge of shell commands and their error codes becomes very powerful.

The benefit, to me, is that a lot of these tasks are easy to experiment with
and rehearse at the command line, so you can nail down a procedure that
works (all while getting great feedback and information from the shell,
which is actually quite user friendly in cases like this -- compared to
running AppleScript blind).  From there, it's just a matter of wrapping the
procedure in a GUI with AppleScript Studio if that's the end desire.

In this particular case, it seems like this should be a straight shell
script job -- what is the GUI buying you??

Craig

-- 
Dr. Craig Hunter
NASA Langley Research Center
AAAC/Configuration Aerodynamics Branch
email@hidden  (new!!)
(757) 864-3020
(Dual G4 - OS X)


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.