Ftp applescript

I have a radio program that spits out a html file onto my HD of the current song playing.  I need a way to auto upload that html file to a web server via FTP.  I thought applescript but no dice.  The best script I can write doesn't even give me an error message so I don't know what or where the problem is just that the html never makes it to the web server.  I tired otto the automater but can't figure that out to save my life.  Anyone know of a way to get "said.html" to a directory on a web server.  My script...
--This Applescript is run by Radiologik every time the current track "Now:" changes
--do shell script "cd ~/Music/Radiologik/Web/ ; curl -T currentlyplaying-1.html ftp://myserver --user mylogin:mypassword"
I know enough to change the my server to "my server and directory" and the login stuff. 

This seems to be a common problem so we have put a working example on CoderRater.net;
http://www.coderater.net/FTP/AppleScript/2013/01/Simple-FTP-Upload-46.html
Please tell others if if works for you and share it.

Similar Messages

  • Output to an ftp server via Destinations or Applescript

    In Compressor, you can set the Destination of a compression batch to be a remote server, such as an ftp server.
    When you start a batch, if the destination is not available or reachable then the documentation (p.230) says: "When there is a problem with your destination, a yellow warning triangle appears. You must resolve this problem before you can successfully transcode."
    Although I have not tried it, it implies that if your remote ftp server is not accessible when you drop a file on a created droplet with the Destination set to an ftp server, it won't be able to begin encoding until the destination is available: "As soon as you resolve the problem, the warning triangle disappears and you can continue to transcode." (p.230)
    For a lot of people, this is OK.
    Some people need to compress and then tranfer the output to a distant location, and they may not have continuous, reliable access to the remote location. They may need to make a temporary connection via modem dial-up, satellite phone or third-world Internet connections. Think news reporters in remote locations.
    So, for those people, the option of Applescript should allow them to have their output files saved to a local destination, and then staged up to the ftp server using the built-in commands. But, the problem is that a small file is created at the Destination when the compression is started, and Compressor is not Applescript aware (apart from being able to call an Applescript). This means that any Applescript called as a post processing activity knows nothing about the files Compressor just processed and outputted. It has to glean information about them from the Destination folder where the output files are placed, and then sort out the completed output files from the ones that have just been started, then ftp the completed files up to an ftp server and delete sent files from the Destination folder.
    What I would like to see is either
    1) a Staged Destination where files are created on the first Destination then staged to a secondary Destination, with an option of keeping these files on the first destination, and/or
    2) Applescript support in Compressor which will allow information about the files that have just been compressed to be passed to another Applescript aware application or script.
    I would be happy even with some sample Applescript to do the transfer or files from Destination to an ftp server that avoids copying files that haven't been fully processed.
    Has anyone else run into these issues?
    Bill Lee

    Oh, trust me, I do know about Apple and the fact this discussion site is not an official contact point for Apple. I'll be escalating this Request for Enhancement through my contacts at Apple.
    There is a reason I have not posted before in this forum (and relates to the above).
    There seems to be few people who are using the Applescript post-processing feature, and I was trying to gauge any support for enhancements in this area (and maybe stir up some villagers with pitchforks and burning torches).
    Apple will listen to normal users input, but it needs to have a business case that justifies any resources devoted to this. The more people affected, and the greater the impact on your business, and the size/importance of your business has an effect on whether you will get what you want, and when.
    Sorry if I was not clear on what I wanted: information as whether this was important for other (non-Apple) people, and whether people had scripts that solved the problem of staging output files to an ftp server that was not consistently connected during the compression process.
    Thanks for your reply,
    Bill Lee

  • How can I create a directory on my server using FTP in applescript?

    Hi
    I have created a script which successfully uploads files to my server using FTP and a curl command.
    The one thing I haven't worked out how to do is how to create a directory on my server using applescript. At the moment I have to manually create the correct directory for the script to work, but would like to be able to automate everything.
    Would this be possible?
    Thanks
    Nick

    Thanks Bernard.
    I have tried that and still get the error message:
    "curl: Can't open '--ftp-create-dirs'!
    curl: try 'curl --help' or 'curl --manual' for more information
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
    curl: (9) Server denied you to change to the given directory"
    The other relevant parts of the script are:
    set ftp_url to "ftp.****.org.uk/artists/" & artistName2 & "/assets/"
    set ftp_username to "*****@*****.org.uk"
    set ftp_password to "****"
    set ftp_entire to ftp_username & ":" & ftp_password & " ftp://" & ftp_url
    set outPath to outputFolder & fileCounter & ".jpg"
    and then...
    do shell script ("curl -T --ftp-create-dirs " & outPath & " -u " & ftp_entire)
    Like I said, all works fine when the directories are already in place. I have permissions for the artists folder set to "777", i.e. writable. Because the script is trying to create two directories at once, i.e. "artistName2" and then "assets" under it, I wondered if this was significant, but then I tried with just one new directory, and still got the error.

  • Applescript to encode mp3, add ID3 info, ftp result now available

    Hi,
    I've been working with three other guys on a podcast for a little while now, and I got tired of all the stuff that comes after editing -- compressing to mp3, adding ID3 tags, and ftp'ing up to my podcast host. So I wrote an Applescript that automates all three of those things. It's called LAME-ID3-FTP and it's located at http://docs.libsyn.com/index.php/User_scripts.
    You don't need to use LibSyn to use it. You do need to start with an uncompressed file and have the command-line binary of LAME installed, as well as to customize the script a bit. The instructions for all of this are in the comments of the Applescript.
    Hope this saves you as much time as it saves me.
    G5 dual 2.0 GHz   Mac OS X (10.4.1)  

    Maybe I'm missing something, but have you tried just using the ftp command without Fetch, etc.? I run Fetch too but here is a straight command from my Desktop to another local machine Desktop for a file and results. I have Apple Fwall on on all machines and port forwarding thru my DSL Modem router too. I just couldn't figure out if you had done this, for what it's worth.
    doug-pennington-s-Computer:~/Desktop pennington$ ftp 10.0.0.13
    Connected to 10.0.0.13.
    220 doug-penningtons-Computer.local FTP server (tnftpd 20040810) ready.
    Name (10.0.0.13:pennington): doug pennington
    331 Password required for doug pennington.
    Password:
    230-
    Welcome to Darwin!
    230 User penn logged in.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> cd Desktop
    250 CWD command successful.
    ftp> ls
    229 Entering Extended Passive Mode (|||49904|)
    200 EPRT command successful.
    150 Opening ASCII mode data connection for '/bin/ls'.
    total 1
    -rw------- 1 penn penn 6148 Mar 19 00:50 .DS_Store
    -rw-r--r-- 1 penn penn 0 Apr 1 1976 .localized
    -rwxr-xr-x 1 penn wheel 13780 Mar 15 16:14 Yahoo.app
    dr-xr--r-- 3 penn penn 102 Mar 19 00:50 box
    drwxr-xr-x 6 penn penn 204 Feb 7 11:40 opof jigs
    -rw-r--r-- 1 penn penn 26 Mar 19 02:31 tripe.txt
    226 Transfer complete.
    ftp> get tripe.txt
    local: tripe.txt remote: tripe.txt
    200 EPRT command successful.
    150 Opening BINARY mode data connection for 'tripe.txt' (26 bytes).
    100% |********************************************************************************| 26 9.20 KB/s 00:00 ETA
    226 Transfer complete.
    26 bytes received in 00:00 (0.38 KB/s)
    ftp>

  • Applescript - FTP

    I'm sufficiently more confused after an entire morning of unsuccessful attempts.
    I'm in need of a "watch folder" that will FTP any new files for me automatically. I'm exporting up to 20 .mov files from Final Cut Pro daily to this FTP location. I want to export them to a specified local folder, have them transferred, and preferably deleted if successfully transferred via FTP.
    Using an Automator plugin I'm able to SORT OF get this to work with Automator (http://www.editkid.com/uploadtoftp/) There are 2 problems with this: 1) I can't get folder actions to trigger. I've set up this Automator script with the folder actions enabled and it won't trigger. I can run the Automator manually and it works great though. 2) There isn't any way to do conditions. If the file name exists on the FTP server already you can't have it take action, display a message, etc.
    So my next step was to try using Applescript so that I could build in conditions. If the file exists, skip it for the time being but display a message that this file needs further attention, or a "Transfer Successful" message if all goes well. The folder that these .mov files will be put into will never change, so I don't want the Applescript to prompt me to pick a folder (as I'm seeing in all the script examples I've come across).
    Sadly after hours of playing with this I really don't even have any code that I can post to ask for assistance on. In all reality, I'm looking for help from the ground up!
    Any assistance you can offer is GREATLY appreciated and will reduce the stress my head has right now...
    Thank you.

    Try the AppleScript forum under OS X Technologies.

  • FTP activity to trigger applescripted email?

    Hey, I am looking to make an apple script that will run and email me when there is FTP activity on an OSX comp that will act as the FTP site. Can anyone here help me out with this or tell me if this is even possible with applescript?

    Hey thanks for the advice. I found a couple scripts that might do the trick, but I need help putting them together.
    This is the first script, it makes an alert when something is added to a folder with this action enabled.
    property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.
    on adding folder items to this_folder after receiving added_items
    try
    tell application "Finder"
    --get the name of the folder
    set the folder_name to the name of this_folder
    end tell
    -- find out how many new items have been placed in the folder
    set the item_count to the number of items in the added_items
    --create the alert string
    set alert_message to ("Folder Actions Alert:" & return & return) as Unicode text
    if the item_count is greater than 1 then
    set alert_message to alert_message & (the item_count as text) & " new items have "
    else
    set alert_message to alert_message & "One new item has "
    end if
    set alert_message to alert_message & "been placed in folder " & «data utxt201C» & the folder_name & «data utxt201D» & "."
    set the alert_message to (the alert_message & return & return & "Would you like to view the added items?")
    display dialog the alert_message buttons {"Yes", "No"} default button 2 with icon 1 giving up after dialog_timeout
    set the user_choice to the button returned of the result
    if user_choice is "Yes" then
    tell application "Finder"
    --go to the desktop
    activate
    --open the folder
    open this_folder
    --select the items
    reveal the added_items
    end tell
    end if
    end try
    end adding folder items to
    And I have a script that I modified to send and email automatically, I just need to know if I can combine these two scripts and then have it as a folder action on the folder that will handle the FTP traffic. Particularly if I can get it to grab the # of items added part and place it in the body text of the email. Perhaps this is over the head of forum help but I ask anyway.

  • Applescript to launch an app and post bug report over ftp

    So I want to make a script that checks if you are connected to the internet and runs a sh file from the server, the on server sh file would be like this:
    ~/app.app/Contents/MacOS/app ;exit
    (In here I would like something that saves the output from that to a text file and uploads it via ftp or something)
    and if there is no connection to run another sh file locally. So far I have this:
    set internetcheck_connection to "true"
    set internetcheck to do shell script "ping www.iwczone.co.uk -c 2"
    if internetcheck is equal to "ping: cannot resolve www.iwczone.co.uk: Unknown host" then
    set internetcheck_connection to "false"
    end if
    if internetcheck_connection is equal to "true"
    --run a sh file on a server (www.iwczone.co.uk/serverscript.sh)
    end if
    if internetcheck_connection is equal to "false"
    do shell script "~/localscript.sh"
    end if
    Thanks in advance.

    Please describe the problem in as much relevant detail as possible. The "etrecheck" fad hasn't made that step any less necessary. The better your description, the better the chance of a solution.
    For example, if the computer is slow, which specific actions are slow? Is it slow all the time, or only sometimes? When did it start to be slow? Did you change anything just before it started? Have you seen any alerts or error messages? Have you done anything to try to fix it? Most importantly, do you have a current backup of all data? If the answer to the last question is "no," back up now. Ask if you need guidance. Do nothing else until you have a backup.

  • Applescript: Copy File Names into an Email

    *I've been slowly teaching myself Applescript, and can't seem to find a way to do a few things. Basically what I'm trying to do is set up a script that will run when items are dropped into a folder on my FTP. I want the script to have a pop-up dialogue, and generate an email to certain users announcing new files are on the FTP. I have these 2 parts down, but I would also like the body of the email to include a list of the filenames. This part I can't figure out.*
    *I just need to find a function that will copy the filenames of new items, and paste them into the body of the email already being generated. My current code is below. Anyone have any ideas to help me expand?*
    property dialog_timeout : 15 -- set the amount of time before dialogs auto-answer.
    on adding folder items to this_folder after receiving added_items
    try
    tell application "Mail"
    set theMessage to make new outgoing message with properties {visible:true, subject:"New Files on FTP", content:"New files have been posted to incoming folder of the FTP."}
    tell theMessage
    make new to recipient at end of to recipients with properties {name:"Jane Doe", address:"[email protected]"}
    make new to recipient at end of to recipients with properties {name:"John Smith", address:"[email protected]"}
    end tell
    send theMessage
    end tell
    tell application "Finder"
    --get the name of the folder
    set the folder_name to the name of this_folder
    end tell
    -- find out how many new items have been placed in the folder
    set the item_count to the number of items in the added_items
    --create the alert string
    set alert_message to ("Folder Actions Alert:" & return & return) as Unicode text
    if the item_count is greater than 1 then
    set alert_message to alert_message & (the item_count as text) & " new items have "
    else
    set alert_message to alert_message & "One new item has "
    end if
    set alert_message to alert_message & "been placed in folder " & «data utxt201C» & the folder_name & «data utxt201D» & "."
    set the alert_message to (the alert_message & return & return & "Would you like to view the added items?")
    display dialog the alert_message buttons {"Yes", "No"} default button 2 with icon 1 giving up after dialog_timeout
    set the user_choice to the button returned of the result
    if user_choice is "Yes" then
    tell application "Finder"
    --go to the desktop
    activate
    --open the folder
    open this_folder
    --select the items
    reveal the added_items
    end tell
    end if
    end try
    end adding folder items to
    Message was edited by: markeze

    AppleScript forum under OS X Technologies.

  • Processing a File (From a Folder Action) Through an AppleScript

    I have a Folder Action enabled which automatically uploads images placed in a folder to a FTP server. It works great when I'm at home on my own network, but if I'm somewhere with a firewall that prohibits connecting to my FTP server (i.e. work) or if I am not connected to the internet, the folder action will still run but my images will never get uploaded.
    I've attached a screenshot of my workflow. The folder action gets the image added to the folder, copies the original to a different folder, and then scales the image down to a smaller size before uploading it. I'm using the upload workflow action from Transmit.
    I figured I could use an AppleScript to check whether or not my computer can reach the ftp server and then wait until it was connected to run the rest of the workflow if it can't reach the server:
    repeat with i from 1 to 86400
        try
            do shell script "ping -o ftp.examplewebsite.com"
            exit repeat
        on error
            delay 5
            if i = 86400 then error number -128
        end try
    end repeat
    The only problem is, I'm pretty inexperienced with AppleScript and am not really sure how or where to insert it into my workflow to get the image to "pass through" the AppleScript. Currently, whenever I include this AppleScript in my workflow, before the Upload action, for example, the image ends up not getting passed through the AppleScript and it doesn't get uploaded as a result.
    Hopefully this a fairly simple question and someone can help me out, or if there's an easier way to delay running a folder action until I can connect to the server someone will let me know. I can clarify anything if necessary.

    Good job
    I just saw this…
    applescript in automator - stop a workflow
    It kills the workflow based on a test, so I tried this…
    Here is the text if you want to copy & paste. It will fail on Apple.com & stop the workflow. Success should allow it to continue.
    on run {input, parameters}
      try
      set pinged to do shell script "ping -c 3 -q  apple.com "
      if pinged is equal to 0 then
      return input
      end if
      on error
      error number -128 -- exit by user-cancel
      end try
    end run
    on run {input, parameters}
       display dialog "Rest of script will now continue..."
      return input
    end run

  • How to automate a unilateral sync from Aperture to an FTP server?

    +You can export multiple Projects at once:+
    +1. Select the top-level *Blue Folder*, this will show all the images from all the Projects in it.+
    +2. Select all the Versions.+
    +3. Export, using the image export preset of your choice, and a folder-naming preset made up of 'Folder Name', '/' & 'Project Name'.+
    +This will export the whole lot in one go, into a subfolder structure of 'name of *Blue Folder*'/'Name of Project'. Note that it will only take the name of the topmost *Blue Folder*, so it will only work for single-level *Blue Folder* structures.+
    I want to take this one step further. My goal is to have a "mirror" of a given *Blue Folder* (with the projects and sub-folders represented as sub-directories as accomplished by the advice above) not just on my hard drive, but on a (private) FTP server. In essence, I want a significant percentage of my photo database mirrored on an FTP server. Note that this is not for backup purposes but for sharing the contents of my photo library (the portion of it that is appropriate to share--for example photos of family events, travels, etc.)
    Currently my workflow is to click the *Blue Folder* that houses all of my family photos, select all versions, and export to a directory as advised above: Folder Name / Project Name. That takes a long time. Then I ftp the entire exported-directory tree to my FTP server. I try to do this cleverly by taking advantage of Yummy FTP's relatively new "sync" feature that compares my source directory tree with the destination directory tree, deletes files on the destination FTP server that aren't in the source file tree and uploads only the files in the source tree that aren't present in the destination tree (i.e. a unidirectional sync).
    This works well enough, but it seems like a process that could be readily automated. Does anyone know of an Aperture plugin that can accomplish this workflow? Ubermind's plugin "UberUpload for Aperture" appears to come close, but it doesn't approximate the Project-Name/Folder-Name to directory tree conversion and it doesn't delete files on the destination FTP server, so it doesn't accomplish the unilateral sync I'm looking for.
    Are there any other plug-ins I should look at; are there any other plug-ins you know of that might accomplish this task?
    Thank you,
    George
    This is a new question but partially in response to a previous post (here --> http://discussions.apple.com/thread.jspa?threadID=1586469) that was marked answered.

    Hmm, that's a possibility, made a little more difficult by the fact that I don't know how to write Applescript. I understand that it's not too difficult to pick up, but that will add to the time required to figure this out (especially if there's no documentation for calls to Aperture--is there really no documentation?). The simplest way to do this with Applescript would probably be to run a script that exports my library of photographs into a file structure as described above, then runs the sync commands available through YummyFTP, and finally deletes the exported files off my hard drive. The major drawbacks to this approach include the long time required for export (and sync if there are a large number of changes) and the need to have a significant amount of free hard drive space (probably 10 gigs in my case) which could be potentially be a problem if one were running low on disk space.

  • Hot Folder for FTP Script

    I'm trying to make a folder on my Mac that is a "Hot Folder." I want this folder to have an action/script that as soon as it sees a new file added it will open Fetch and upload via mirror to an FTP folder.
    I was able to make the Fetch portion of the script without issue, but making the folder "Hot" is a bit more difficult for me. I tried to use some script from the sample script "add - new item alert" but have been unsuccessful. I'm hoping some of you Applescript pros can review this and tell me how to correct. Or perhaps you know of a better way to make this work with automator.
    SCRIPT:
    on adding folder items to this_folder after receiving added_items
    try
    tell application "Finder"
    --get the name of the folder
    set the folder_name to the name of this_folder
    end tell
    -- find out how many new items have been placed in the folder
    set the item_count to the number of items in the added_items
    --create the alert string
    if the item_count is greater than 1 then
    tell application "Fetch"
    activate
    make new transfer window at beginning with properties {hostname:"ftp.hostname.here", username:"myusername", password:"mypassword", initial folder:"/pub/pao/images/"}
    mirror alias "Macintosh HD:Users:Bill:Desktop:test:" to url "ftp://myusername:@ftp.hostname.here/pub/pao/images/" format Automatic without delete strays
    end tell
    end if
    end try
    end adding folder items to
    Thank you all!

    Well, then. I thought wrongly, I haven't used those in a very long time and thought they were saved.

  • "Hot Folder to FTP" script review please

    I'm trying to make a folder on my Mac that is a "Hot Folder." I want this folder to have an action/script that as soon as it sees a new file added it will open Fetch and upload via mirror to an FTP folder.
    I was able to make the Fetch portion of the script without issue, but making the folder "Hot" is a bit more difficult for me. I tried to use some script from the sample script "add - new item alert" but have been unsuccessful. I'm hoping some of you Applescript pros can review this and tell me how to correct. Or perhaps you know of a better way to make this work with automator.
    SCRIPT:
    on adding folder items to this_folder after receiving added_items
    try
    tell application "Finder"
    --get the name of the folder
    set the folder_name to the name of this_folder
    end tell
    -- find out how many new items have been placed in the folder
    set the item_count to the number of items in the added_items
    --create the alert string
    if the item_count is greater than 1 then
    tell application "Fetch"
    activate
    make new transfer window at beginning with properties {hostname:"ftp.hostname.here", username:"myusername", password:"mypassword", initial folder:"/pub/pao/images/"}
    mirror alias "Macintosh HD:Users:Bill:Desktop:test:" to url "ftp://myusername:@ftp.hostname.here/pub/pao/images/" format Automatic without delete strays
    end tell
    end if
    end try
    end adding folder items to
    Thank you all!

    Well, the most obvious problem is:
    if the item_count is greater than 1 then
    If you drop a single file into the folder, nothing will happen. That's because item_count will be 1, not greater than 1.
    If you don't care about how many files were dropped (because Transmit's mirror function will just synchronize the differences, then omit this line altogether - the script won't fire unless at least one file was added.

  • How do I automatically upload files to an FTP server with Compressor 4?

    So I've been using Compressor 4 in order to compress some videos into a manageable size for streaming. However, I've been trying to figure out how to set up an automatic FTP upload to the program Transmit through Compressor 4, but have been running into roadblocks. When choosing a destination by using the plus icon in the destinations tab, the choice of local or remote no longer appears. Also, when going to the actions tab in the Inspector box, the option to "Execute Applescript" is also gone.
    Has anyone found a way around this yet? I have no experience with Automator, so I am hesitatnt in spending the time to learn a new program just to make the process of compressing and uploading more efficient.

    Hi Nick.
    I'm afraid it went missing in the 4.0.3 update for whatever reason. Unless you have a way of rolling C back one version, you'll either have to write a work-around or see whether it re-appears in a future version.
    Also, http://www.apple.com/feedback/compressor.html
    Russ

  • HT2488 How do I create a workflow in Automator or a script in AppleScripts to download an excel file from a specific webpage?

    I would like to create a workflow in Automator or a script in AppleScript (or a combination of the two), that opens Safari to a specified page and downloads an excel file from this page and saves the downloaded document to my desktop.
    Is this something that be done? If so, how?
    I have so far been able to build a workflow in Automator to open Safari and added an AppleScript that takes Safari to a specific page that has an Excel document.
    I can't figure out where to go from here... Any help would be apprecitated.
    Thanks!

    Would you have the web address the excel sheet is on?
    Is there a simular web page you could point to if not?
    Would there be a copy of the file on an FTP page.  This would be easier. 
    curl
    http://www.cyberciti.biz/faq/mac-os-x-terminal-download-file/
    http://www.thegeekstuff.com/2012/04/curl-examples/
    http://curl.haxx.se/docs/manpage.html
    Macintosh-HD -> Applications -> Utilities -> Terminal
    # Press return to run a command.
    the curl is a terminal command ( Unix ).  It allows you to read a file off of the web.
    man curl
    provides cryptic information on the commnad curl.
    press the space bar to advance  a page.
    press letter to q to quit.
    What you may have to is to read in the web page as a text file.  Go "fishing" through the page to find the excel file you need.  Once you find the file, you can use curl to read the file.
    curl is a very full featured command.  (read complex to figure out ).
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • FTP / File-Upload and Download

    Hi AS-Experts,
    is it possible to upload and/or download a file to/from a server using AppleScript?
    I need to download pictures from a web server, rework them in photoshop, and upload them afterwards. And it would be easier/safer/cleaner having to mess only with AS and Photoshop than having to involve a scriptable ftp-app too.

    01. Locate and open the '/System/Library/ScriptingAdditions/' folder.
    02. Select all seven (7) items of the folders' window.
    03. Drag the selected items onto the 'Library' window of 'Script Editor'.
    04. Double click on 'URL Access Scripting.app', of 'Script Editor's 'Library' window.
    05. View the options of 'upload'.
    You will note that 'binhexing' is set to 'true'. Therefore, you have to use ...
    tell application "URL Access Scripting" to upload (alias "HD:path:to:your.file") to "ftp://username:[email protected]/path/" without binhexing
    You should have created a new forum subject post.

Maybe you are looking for

  • Creating SQL-Loader script for more than one table at a time

    Hi, I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9. It looks like I can create SQL-Loader scripts for all the tables or for one table at a time. If I want to create SQL-Loader scripts for 5-6 tables, I have to either create script for al

  • New folder is dimmed how to fix?

    Mac OS X 10.6.8 can not create new folder on desk top. The new folder is dimmed out.

  • Df command usage with Servlets

    I am trying to present cygwin df information in a web app running on Tomcat 5.0 using Java 1.5. When I run the class locally it returns the anticipated results, to include both all locally and remotely mounted drives actually networked drives (Window

  • I have AVG 2011 Free and Firefox will not connect to update server

    Firefox 4 tries to update but cannot connect to the update server. I have AVG 2011 Free Version which is not covered in your help page. It does not have the facilities that your suggestions for earlier versions of AVG does (ie anywhere that shows fir

  • Safari Cleanup Utilities???

    Hi, We were discussing on a different discussion thread about the various OSx cleanup utilities, and how basically these third party products cannot be really trusted. Just out of interest I did a live chat with a guy from Micro Smith and asked about