Re: resizing an image based on part of filename
Re: resizing an image based on part of filename
- Subject: Re: resizing an image based on part of filename
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 24 Oct 2008 10:16:50 -0400
Not sure exactly what you're trying to do, but if you just want to get
the code out of the filename, how about this?
word -2 of "some name of ad BC.jpg" ==> "BC"
On Thu, Oct 23, 2008 at 3:57 PM, <email@hidden> wrote:
> Hi,
>
> I have a script I have been working on, yesterday I asked about renaming a
> file, today I need to figure out how to resize an image to one of several
> preset sizes based on the file name...
>
> we are a publishing company, and the script generates "Proofing Images"
> for our customers to approve.
>
> the files have a code in the file name (2-4chars), the filenames have
> spaces before the code, and the code is always just before the extension,
> some examples are:
>
> some name of ad BC.jpg
> some other ad QP.jpg
>
> I have the filename, containing folder, and full file path as separate
> variables already, see below for examples:
>
> newfile_name = "some ad BC.jpg"
> fileLocation = "some:path:to:file"
> newfilePath = "some:path:to:file:some ad BC.jpg"
>
> any ideas as the best way to go about this?
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden