Previous 1 2 3 Next 35 Replies Latest reply: Jun 13, 2012 12:26 PM by Old Toad
Cyclosaurus Level 6 (12,915 points)

i posted this long time ago:

https://discussions.apple.com/message/6008805

 

 

revised for newer osx:

 

1) launch AppleScript Editor.app , it's in /Applications folder

2) copy the following into AppleScript Editor window:

 

do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"

delay 1

tell application "iWeb" to activate

 

3) select menu bar --> File --> Save as... (give it a name)

4) at File Format popup menu, select --> Application

5) make sure Options: Startup Screen is unchecked

6) click Save button

  Untitled.jpg

 

Next time, instead of launch iweb, you just launch this new app.

I'd been doing this since iweb1.1.

  • Zen_learner Level 1 (0 points)

    Thanks very much for this very nice piece of info.

     

    one last thing (please) I get the following when running...

     

    AppleScript Error

     

    sh: line 1 iWebDefaultsDocumentPath: command not found

     

    I've checked 10x to make sure I've typed the line as instructed...

     

    Thx again

  • Zen_learner Level 1 (0 points)

    Ok, I hit Return key, instead of just using a space. Works fine. MANY THANKS

  • Cyclosaurus Level 6 (12,915 points)

    this posting system broke up the line, the do shell script line should be one line before the delay 1 line:

     

    -- the following be one line... no line break, start after this

    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"

    -- ends here

    delay 1

    tell application "iWeb" to activate

  • Zen_learner Level 1 (0 points)

    Thank you, it works great!

     

    Is it best to leave the icon as it is (a script) or change to differentiate?

     

    Perhaps changing icons for scripts too difficult?

     

    I am still amazed (and thankful) how well your solution solved a 'complex to solve if Apple did nothing' problem.

  • Cyclosaurus Level 6 (12,915 points)
    Is it best to leave the icon as it is (a script) or change to differentiate?

    It's up to you.

    Perhaps changing icons for scripts too difficult?

    pretty simple really, follow these steps:

     

    1) open an image file with Preview.app

    2) select all or command + a

    3) copy it or command + c

    4) in finder, select the script/app

    5) do get info or command + i

    6) click on the script icon to select it, the icon should hilited

     

    Untitled.jpg

     

    7) do paste or command + v

    8) close the get info window

    that's it.

     

    you can do alot of thing with applescript but most people don't know it.

    as of the last xcode and xcode4, you can write full blown cocoa apps in applescript.

  • Cyclosaurus Level 6 (12,915 points)

    one more thing,

    you can make a drag-n-drop applescript app and you don't have to go thru finder chosse file dialog.

    here is the code, arg!!! this posting system s u c k s! for code posting.

    replace line brake with space:

     

    -- applescript start

    on open dropItem

              set iWebDefaultsDocumentPath to quoted form of (POSIX path of (dropItem as string))

    -- the following is one single line. no line brake, replace line brake with a space

              do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath " & iWebDefaultsDocumentPath

    -- end

              tell application "iWeb" to activate

    end open

     

    -- applescript end

     

    ----------------------------

     

    once you have the app, all you need to do is drag-n-drop iweb domain.sites2 package onto the app/script... the app/script can be in the dock too.

     


  • Jeff Nitschke Level 4 (2,655 points)

    You are the Man! You Rock!

  • lidiafrombarcelona Level 1 (0 points)

    Thaaanks! It works perfect.

  • Koeklin Level 4 (1,125 points)

    Merci Cyclosaurus

  • j.p.cox Level 1 (0 points)

    I get thsi applescript error..

     

    2011-07-25 07:49:10.004 defaults[915:f07] Unexpected argument no; leaving defaults unchanged.

  • prospervic Level 1 (65 points)

    This is so awesome!

    I had resorted to booting from my Carbon Copy Cloner backup HD that was still running Snow Leopard to use iWeb (thank heavens I didn't do a Lion backup on this disc yet!)

     

    Now at least I can work on my sites while in Lion!

     

    Big, BIG thanks to you!  You made my day!

  • Cyclosaurus Level 6 (12,915 points)

    there couple versions of my applescript (made by other people) on the web:

     

    http://www.mediafire.com/?p2oh58fkd3a5j5o

    http://iwebfaq.org/site/iWeb_Troubleshoot.html

  • Old Toad Level 10 (135,418 points)

    If you put the code in as a quote it shouldln't break.


    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"

    delay 1

    tell application "iWeb" to activate


    This scipt was copied out of the Script Editor window after the Compile button was used to compile it.

     

    OT

  • Cyclosaurus Level 6 (12,915 points)

    you can not quote your own wording when you are the original poster.

    and that makes sense, because why do i have to quote myself in my own post?

Previous 1 2 3 Next