Re: Can I...
Re: Can I...
- Subject: Re: Can I...
- From: JollyRoger <email@hidden>
- Date: Thu, 18 Jan 2001 23:59:17 -0600
on 1/18/2001 10:56 PM, David Schrimpf at email@hidden wrote:
>
I'll have two files. One's a text file, the other is a jpg. I drop them into
>
a folder (using folder actions). The jpg gets opened in GraphicConverter,
>
resized to a certain size, saved with a certain name. Then both the txt file
>
and the finished photo get uploaded to a certain spot on a certain web
>
server automatically (I suppose I'll have to use Interarchy?).
>
>
Can this be done... and if so, can it be done with one script? Any
>
recommendations will be appreciated.
Hi David,
Yes, it can be done. You've come to the right place. :)
I would suggest using Akua Sweets for the resizing (take a look at the
"scale image" command in the Akua Sweets dictionary), which is considerably
faster than using another app like Graphic Converter.
The uploading can definitely be done with Interarchy (and that's my
preferred method of uploading :).
I gather that you haven't started writing your script yet. Here's some
example code for uploading with Interarchy to get you started. This snippet
is taken from a script I use to upload an HTML file to my web site
publishing my current IP:
(Careful, the list server is bound to screw things up because it can't
handle special characters used in some scripts.)
-- post IP address
tell application "Interarchy"
activate
delay 3 -- gives Interarchy time to come up on slow machines
with timeout of 604800 seconds -- timeout in one week =)
set err to store file myHTMLFile host myFTPHost path myFTPPath user
myName password myPassword
end timeout
if err is not 0 then
if err is errBadFilename then display dialog "One of the items you
are uploading contains an illegal character. Only alphanumeric characters
are allowed."
display dialog "Error: " & err
end if
-- quit
end tell
HTH
JR
References: | |
| >Can I... (From: David Schrimpf <email@hidden>) |