Non .Mac publish with Automator / AppleScript?

Hi folks!
Currently I am using the following procedure to publish my iWeb site to my ISP:
- "publish to folder..." option in iWeb
- copy saved content from an extra folder over the new one (slideshow, PHP tweaks, small images)
- sychronize local and remote folder with Captain FTP (only updated files)
Is there any way to script these steps using the Automator (or even apple script)? Unfortunately it seems neither iWeb nor Captain FTP is "Automator-enabled" as I couldn't find any actions of them...
Bye, Matthias
iBook G4, Mac mini   Mac OS X (10.4.4)  

So how does Captain Ftp check which file has been changed?
By size or date?
I have been thinking about doing something similar with Transmit.
The problem is that you can't check the date since you have to export all the pages when you do an export. It's all or nothing with iWeb.
That means that ALL the files gets updated.
I created a simple worklow in Automator that uses ftp to transfer the specific blog-directories.
So that I don't have to ftp my whole site everytime I update my blog.
Unfortunately, I have to upload my whole blog every time since the file naming convention is a bit strange.
Would have been better with a numbering system, or something else.

Similar Messages

  • Links to slideshow stopped working on non .mac published site

    I was helping my friend redo his website in iWeb. It was previously done in iWeb, and worked fine when published to a folder and uploaded to his verizon account.
    Today, when we exported and upload none of the links on the photo gallery pages worked. Clicking a photo to enlarge it found a broken link, and the slide show stopped working too.
    I thought I forgot to do something, so I uploaded the old version of the site. That stopped working, too.
    Am I missing something?

    The Apple slideshow (the one built-in to iWeb) using the photo template is supposedly one of the ".Mac-only" features of iWeb. It uses some resources off the .Mac servers, so it probably won't work when the pages are hosted on other non-.Mac servers.

  • How to batch convert .pages to .pdf  with automator & applescript

    Hi all,
    As the title states, I want to drag and drop one (or a whole stack) of .pages documents onto an automator app, and have it pump out .pdfs...
    Here is my code, it crashes with an error, but I'm really new to this so I don't really know what's going wrong.
    on run {input, parameters}
      tell application "Finder"
      repeat with aFile in input
      if class of (item aFile) is not folder then
      set {tName, fileExt} to {name, name extension} of aFile
      if fileExt is not missing value and fileExt is not "" then
      set tName to "PDFs/" & (text 1 thru -((count fileExt) + 2) of tName) & ".pdf"
      tell (get container of aFile)
      if not (exists folder "PDFs") then make new folder at it with properties {name:"PDFs"}
      tell application "Pages"
      set mydoc to open file aFile -- open input file in Pages
      export mydoc to file tName as PDF --do the exporting
      close mydoc saving no -- close the original file without saving
      end tell
      end tell
      end if
      end if
      end repeat
      end tell
    end run

    mirror318 wrote:
    One more thing, is it easy to change that script so that the output is put in a subfolder called "PDFs" (the folder would go in wherever the .pages file was)?
    This should save to a subfolder called "PDFs" in the Folder where the pages file is located:
    on open fs
      my proceed:fs
    end open
    on proceed:fs
      tell application "Finder"
      repeat with i from 1 to (get count of items in fs)
      if (name extension of item i of fs) is "pages" then
      --set PDFfile to text 1 thru -7 of (item i of fs as text) & ".pdf"
      set PDFfile to name of (item i of fs)
      set PDFfile to text 1 thru -7 of PDFfile & ".pdf"
      if not (exists (parent of (item i of fs) as text) & "PDFs") then
      make new folder at (parent of (item i of fs)) with properties {name:"PDFs"}
      end if
      set PDFfile to (parent of (item i of fs) as text) & "PDFs:" & PDFfile as text
      tell application "Pages"
      set mydoc to open (item i of fs) -- open input file in Pages 
      export mydoc to file PDFfile as PDF --do the exporting 
      close mydoc saving no -- close the original file without saving 
      end tell
      end if
      end repeat
      end tell
    end proceed:

  • Non-mac headphones with mic

    Is there an accessory so I can use my "PC" style headphones/mic with my iPad. ie an adapter into which I can plug separate earphone/mic jacks?

    Thanks,
    I understood the Mac earphones included a mic & that the 3.5mm jack socket on an iPad/iPhone had an extra connection inside - my son's Mac earphones/mic certainly have a jack with 3 "little black lines" whereas mine has 2 & the mic jack has 1.
    ATB
    Robincm

  • StatsCollector, monitor a non-Mac server with BigTop ?

    Hello,
    I just discovered the new BigTop a few days ago, and I would like to know if anybody knows how to (if it's possible) monitor a Linux or BSD server with this great tool.
    I know it uses statsCollector to collect data, is this tool open-source ? (I don't know where to look for such things)
    If it is, is there any chance to be able to install it by hand ?
    Thank you in advance,
    Julien
    PS: Please excuse my english

    What's BigTop?
    The only reference I know of it is for monitoring load balancers from F5, but I doubt that's where you're looking.
    google doesn't appear to offer any clues, either.

  • Need some help with Automator/AppleScript

    Hi guys, I'm trying to crate an automated process that will refresh a page that I've left open in a Safari window, search for a piece of text and, if said piece is not found, send me an e-mail (or better yet - iMessage). Basically, I want it to keep refreshing a page until it's contents change and then notify me.
    To get to the page I want to monitor, however, you need to go through a login (including captcha), so making Safari go to a certain URL won't work - I need it to refresh a page I've left open for it. Oh, and the page triggers an "Are you sure you want to send a form again?" dialogue if refreshed - the script should be able to confirm that (so it can keep refrshing).
    Also, it would be great if it's possible to make it run in the background, so I can use the computer while it's running.
    Any help will be very appreciated

    Then this should get you started. It grabs the URL of the current window and then repeatedly reloads it, looking for the specified keyword. You'll need to determine the actions to take when/if the keyword exists or doesn't.
    set keyword to "blah"
    tell application "Safari"
      -- get the current window
              set myWindow to (get current tab of window 1)
              repeat
                        do JavaScript "window.location.reload()" in myWindow
      -- wait for the page to load
                        repeat until ((do JavaScript "document.readyState;" in myWindow) is equal to "complete")
                                  delay 0.5
                        end repeat
                        set pageContent to text of myWindow
                        if pageContent contains keyword then
      -- code here for 'situation normal'
                        else
      -- code here for when text is missing
                        end if
      delay 2 -- wait a bit before running again
              end repeat
    end tell
    Since it stores a reference to the window you're free to do other things (open new windows, switch apps, etc.) as long as you don't close this window.

  • Hi, i cannot publish my iWeb site with  a non mac domaine name...can anyone help please?

    hi, i cannot publish my iWeb site with  a non mac domaine name...can anyone help please?

    Hi, I have a site developed by myself usinf iWeb and as iWeb are no longer hosting teh sites in 2012 i have found another domaine. It is with Go Daddy and the domaine / name is live. I have tried to publish site using fttp but keeps coming up wih a common error message saying the info i have input is incorrect. I have tread this may be an issue if host is a windows based host???
    appreciete your help

  • Using unix 'diff' command to publish iweb to non .mac server

    It is a common problem that you can't upload incremental changes to a website a web server that is not a .mac. Recently I found that the unix (shell) 'diff -qr' works nicely for this.
    However I can't seem to get this to work in automator. That is where I need some help.
    What I did :
    I have an iweb website in my directory
    Documents/website
    I made a second directory where I store my uploaded version of the website:
    Documents/websiteonserver
    Using a shell script I want to compare the differences between these two directories using the diff command in a shell script. When I run 'diff -qr websiteonserver website' in a terminal window, it gives a nice overview of which files are changed and which ones are new. When workin with iWeb this saves me a lot of time uploading my homepage to a non .mac server. I can only upload the changed files, which is usually only a few. Diff does not look at timestamps (which are useless in the iweb case) but it actually looks into a file and with the -q option it stops when it finds a difference. With the -r added (-qr) it also looks through all subdirectories and compares files with the same name.
    I like to automate this process so that my wife can update our family homepage with just one mouseclick (or as few as possible)
    Unfortunately the diff command in automator gives an error, and there's no info on why it does this.
    The commands I gave:
    cd Documents
    diff -qr websiteonserver website
    (using PWD i verified that the path is correct like this). The only stumbling block for automator seems to be the diff command. Anybody any suggestions on this?
    The next challenge is to take the diff output and use that to upload only changed/new files to a ftp server.
    Any help / ideas are welcome
    Greetings,
    Adriaan

    Dear Cyclosaurus,
    I used a single command as us specified. It really helped to add the path to the directories I wanted to compare. So now at least I got it two work partly:
    It seems to work only if I compare two files. Comparing directories still does not work. Maybe diff generates some kind of error code when doing this??? It does not do that in the shell.
    If I compare all files in directories + subdirectories , the workflow does not work. It seems as if it only accepts a single output line or so from the diff function. If there is more output (or maybe some newline character) the workflow halts. Very peculiar.
    mmm.... I will try to make a shell script which I can run in automator. In the script file I will then generate a txt file. Then the automator can run the script and then it can open the resulting file in a text editor. See if that works.
    mmm nope. I made a script like this:
    #!/bin/bash
    diff -qr ~/Documents/websiteon_theserver/ ~/Documents/website/ > ~/Documents/logfile.txt
    I modified the atributes to executable and I could run it from the command line. The logfile.txt was created and has the correct info. I could not run it from automator...
    I did copy the last line from the script into automator. And also there it does create the logfile, but the automator still says there was an error and stops.
    maybe I should try Applescript, were it not that I am totally clueless on that language...

  • Why can't Apple make 'publish changes only' for non .mac users?

    The recent iWeb update to 1.1 and the now increasingly obvious differential between .mac and non .mac features has prompted me to post here today.
    I can understand comments, passwords and search facilities being a .mac only experience because it requires server side technology. I can also understand that .mac users get enhanced features like slideshows as well.
    But why is the fundamentally *basic* option to 'publish the changes only' not available to non .mac users?
    I know uploading to .mac uses a different protocol to uploading via FTP, but I don't think it is about that. Obviously the software engine in iWeb 1.1 can now track the pages that have changed, and flag those for uploading. So if the facility to do this is not available with non .mac uploading, is this some form of crippleware? Can any software engineers comment on this or am I talking off the top of my head? [And please mods, don't delete this post - I use the word 'crippleware' in its harshest form, clearly I can still use iWeb to make fantastic websites - I am asking a technical question here.]
    Michael
    A Trusty Quicksilver G4 Dual 1GHz

    OK, from reading this thread:
    http://discussions.apple.com/thread.jspa?threadID=486335&tstart=0
    There is a pattern: An error occurred while publishing file “/blah/blah", while file "/blah/blah" seems to be random from one person to the next, but they all share one thing and that is communication protocol.
    For iWeb to be able to publish changes to .Mac, it has to:
    1. identify if the file exists
    2. do the following:
    2a. if not exists, copy it to .Mac
    2b. if exist, do some sort comparison - CRC checksum -
    2b1. if checksums match, don't copy
    2b2. if checksums don't match copy it to .Mac
    At least I think that's what going on, I don't have .Mac so that is best I can think of. Perhaps, some Apple SW engineers can jump in here.
    Now, the bad part is iWeb has to (and I'm assuming iWeb uses WebDAV):
    1. go thru each file locally
    2. crawl its way into .Mac (WebDAV is a slow protocol) to find the the counter part.
    3. when it finds a file that matches a client side file, it has to (some how) do checksum on-the-fly across the net work (which is slow and congested)
    #3 is I think where it failed, there are many factors here: 1) networks congestion 2) latency 3) protocol overhead 4) checksum calculation time etc...
    iWeb eventually times out because any/all of the above.
    It's nice that WebDAV can author to the host yada, yada, but it's so SLOOOOOW.
    What I would do is for every publishing, I would build a files and their checksums keep it on the host (or local, must be hidden).
    For subsequence publishing, I would (use a fast protocol like FTP) download this pre-built files/checksums list. Locally, do a full publishing, making checksum comparison, the result is delta changes; upload only those. Build a new files/checksums list upload that too.
    What I mean to say is offload everything that is possible to local machine, bandwidth is PREMIUM!

  • Need Help with scripting for Automator/AppleScript.

    Hi everybody,
    I am building a small app for my mac, What I need is a script that can rename a file that I drop on it.
    and example being:
    example.jpg
    (when I drop it on the app, I want the app to change the filename of the document to "Image.jpg"
    I have tried this with Automator, but it requires that I specify the file to be changed, what I need is something that will change the name of any file I drag onto it.
    I am using it for application specific files.
    Kind regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme    

    Open the Script Editor in the
    /Applications/AppleScript/ folder and enter the
    following:
    on open(the_file)
    tell application "Finder"
    set name of the_file to "Image"
    end tell
    end open
    Save this script as an application.
    (11347)
    this script compiled correctly; however when run it returned the following error "Can't set name of (the_file) to "Image.jpg"
    I am also given the option of editing the script or just quitting.
    thanks for your help

  • Publishing to non mac domain

    Hi All;
    I own a non .mac domain and need to know if I can publish there from iWeb. How is this done and how do I update pages & blog?
    Many thanks,
    Susan

    When you have a site on two different servers it might be helpful to have each site in its own domain file. I use iWebSites to manage the multiple sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your original Domain.sites files before starting the splitting process and move it to another location on your HD until you're satisfied the separation process is completed and what you want.
    This lets me edit several sites and only republish the one I want.
    OT

  • (No .Mac Acct.) Can I still publish with iWeb?

    I don't know much about iWeb. I already have a webpage and domain name and I am thinking of buying iLife but only if I can publish to my existing domain.
    Sorry if this question has already been asked but I didn't find a similar question anywhere in the iWeb discussions.
    Thanks in advance for any help.
    Jamie

    I already have a
    webpage and domain name and I am thinking of buying
    iLife but only if I can publish to my existing
    domain.
    If you have hosting space at your domain, of course, you will be able to use iWeb to design your pages. Then through iWeb you will save the website files to a folder on your desktop. And from your desktop you would use an FTP program to upload the site files to your webhost server. There are some tips from Tom Gewecke here on this page for hosting iWeb pages on a non-.Mac server...
    http://homepage.mac.com/thgewecke/iwebserver.html
    Good luck and enjoy iLife (especially iWeb) when you get it! If you have found any of this information to be useful to you, please take the time to provide me with feedback by marking my reply as "solved" or "helpful" using those little buttons that you see in the title bar of this reply. I'd really appreciate it!

  • Non mac server publishing

    When publishing to a non .mac server certain features do not work... any way to get them to work. rss for one
    Are there any other features that I need to know about that may not work?
    Thanks
    Mac Book Pro   Mac OS X (10.4.8)   Iweb 1.1.2

    RSS should definitely work. It's just a matter of entering the correct domain name in the "Publish to Folder" dialog box and also uploading the correct items to your server. I can help you with this if you desire.
    As far as other .Mac only features that won't work for you... these include blog commenting, search, password protection, the enhanced photo template slideshows, .Mac counters, etc.
    Of course, you can find replacements for all of these features...
    Blog comments: iComment/Haloscan combination from Chad Brantley
    Search: Google site search box
    Password Protection: htaccess files
    Slideshows: take your pick
    Hit counters: StatCounter.com

  • Windows 2012 R2 ADRMS domain controller version and Non-domain-joined Mac Client with outlook 2011

    Hi,
    What is the AD version for Windows 2012R2 ADRMS?  Is it possible to have Windows 2003 R2 DC with Windows 2012R2 ADRMS?
    Any installation guide Non-domain-joined Mac Client with outlook 2011?
    What is the SQL version for Windows 2012R2 ADRMS?
    Please advise.  Thanks.
    Kelvin Teang

    Hi Kelvin -
    There is no RMS Client for Macs.  That functionality is actually provided through the Office for Mac application (this is different compared to the PC).  Domain-joined clients will autodiscover the RMS server and should be able to create and consume
    protected content.  Non-domain-joined clients cannot automatically discover their RMS server.  In this scenario, prepare a protected document or email from a domain-joined machine and send it to your non-domain-joined users.  They will open
    the document or email up and the URLs contained in the publishing license of the document will direct them to the correct RMS server. 
    I hope that helps!
    Micah LaNasa
    Synergy Advisors
    synergyadvisors.biz

  • Publishing to a non .mac site

    Hi, is there a step by step procedure to publish a site to a non .mac host?
    Thanks

    I changed the name, uploaded the folder, and still
    nothing.
    When you look at your web space with your ftp program, you should see two items: index.html and a folder called Kiiskakuna. Do you?
    When I hit publish,
    it automatically publishes to iMac. I have to use
    Cyberduck to upload to the other server. Is this
    correct?
    Yes. You do not hit publish, you use the menu item to publish to a folder. It is a good idea to select your desktop as the place to publish to so you don't get mixed up. After publishing that way, you should see two items on your desktop, index.html and a folder called Kiiskakuna. You use Cyberduck to upload these to your web space.
    Right now it is clear that there is no index.html in your web space, so you must not have uploaded that. It must be outside the folder Kiiskakuna and it must be the one that iWeb created outside the folder Kiiskakuna. There is another one inside the folder, but that and everything else there should get uploaded automatically when you upload the folder.
    What is the name of the topmost page of your site inside the iWeb app?

Maybe you are looking for

  • Dreamweaver can't see my css or template files

    I'm sure this is a simple problem with a simple answer, but it's baffling me... I'm currently setting up a new site with a new local root folder. I'd like to make some pages for this new site based on my existing css file and templates. I put these f

  • USB SoundBlaster Live not turning on when I log on.

    <FONT face=Verdana color=#0000ff>Hi, <FONT face=Verdana color=#0000ff> <FONT face=Verdana color=#0000ff>Having a small problem with my <EM>24-Bit External (USB) Sound Blaster Li've</EM>: <FONT face=Verdana color=#0000ff> <FONT face=Verdana color=#000

  • Older iPod and Viewsonic Monitor with dock

    Hello All, I just bought the 22" Viewsonic LCD monitor with iPod dock on it. I have an older 40gig iPod. (almost 4 years old) The doc sync's with my iPod and iTunes just fine, BUT it does not charge. I originally thought that it was an issue with the

  • Making Photo Montage for Desktop

    Hi Guys, I have a ton of really small photographs in a folder on my desktop that I would like to have in one large picture. I am looking to create something that has all the photos (or at least most) on a grid in one large picture and then set that a

  • Error Installing DVDSP 3 Upgrade

    New to discussions. First post. Recently acquired DVD Studio Pro v1 + v3 upgrade intending to install under OS X 10.3.9 on mirrored RAID drives. Tried to install v3 upgrade without first installing v1, hoping it would merely prompt for valid license.