Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to manage multiple unrelated iWeb sites' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to manage multiple unrelated iWeb sites
Authored by: skirtley on Feb 02, '06 03:08:14PM

I am sorry, but I have not been able to get it to work. I am not familiar to Apple Script, but I do know programming.

I created a folder under Documents called iWeb_Projects. (My Home Directory is a Vault).

I pasted the contents of the txt file into script editor. When I run the script it asks to Swap Projects or Create a New one. It will Then close iWeb if it is open and do nothing. I do notice that the Result in Script Editor says "Enter Name for Project". There is no place to type.

Please provide some assistance. I originally posted the Symbolic Link hint. But I would like to have to option to manage multiple iWeb Domain.Sites.

thanks



[ Reply to This | # ]
An AppleScript to manage multiple unrelated iWeb sites
Authored by: skirtley on Feb 02, '06 03:21:59PM
I changed "on Error" to represent the following.
on error error_message
set New_dilog to error_message
end try
It looks like this was being triggered. I now get the following error message.
"Can't make «class cfol» \"iWeb_Projects\" of «class cfol» \"steve:Documents:\" of application \"Finder\" into type alias."


[ Reply to This | # ]
An AppleScript to manage multiple unrelated iWeb sites
Authored by: mark hunte on Feb 02, '06 05:44:10PM

First, that error handler is important as it was, its used to reset that variable.
Make sure you change it back.

I have not tried the script from a File Vault, but have heard that they can course problems.

Have you tried the script as a different use, without file vault.

---
mh



[ Reply to This | # ]
An AppleScript to manage multiple unrelated iWeb sites
Authored by: mark hunte on Feb 02, '06 05:59:07PM

Ah, realised whats going on.

when i was testing i already had the "iWeb_Projects" folder filled with some projects.

If on the first time you run the script and select swap, there is nothing in the
"iWeb_Projects" folder to swap with. So it errors out.

To get started, select to create a New project first rather than swap.

I will fix this. by telling it to tell you there is nothing to swap to so make a new project first.

But you should be ok from then on Fingers crossed.

remember to change the error handler Back.




---
mh



[ Reply to This | # ]
An AppleScript to manage multiple unrelated iWeb sites
Authored by: mark hunte on Feb 02, '06 07:11:36PM

Ok this that is fixed.

heres the link to the new version

http://uk.geocities.com/markosx@btinternet.com/scripts/iweb_sites_scpt.txt

---
mh



[ Reply to This | # ]
An AppleScript to manage multiple unrelated iWeb sites
Authored by: skirtley on Feb 02, '06 07:15:32PM

I tried a 'test' account with file vault turned off. I created a iWeb_Projects, and it worked as expected. I will try the new script to see if there is any change.

Sorry to have modified your code before. I was just trying to debug where my problem was. Old habits.



[ Reply to This | # ]
An AppleScript to manage multiple unrelated iWeb sites
Authored by: mark hunte on Feb 03, '06 02:21:03AM

OK I will see what I can do for file Vault users.

Also thanks for making me look at the code again, and spot a small issue.

By the way you can change the code as much as you like, My concern
was, that part of the script need to be as is...

will carry on talking over email RE: file vault users. and post the results back here...
If anyone else spots anything else please let me know.

Thanks

---
mh



[ Reply to This | # ]
HELP! I think a made a BIG mistake!
Authored by: muzak75 on May 17, '06 04:23:11AM

I originally had two sites on iWeb that I was working on. I ran the script after making a new iWeb_Projects folder in the appropriate place. I noticed a file got trashed when the script was run. It asked if I wanted to create a new project. I said yes and named it "Test". From then on, when I opened iWeb, there were no sites except a blank one waiting for me to select the first page.

LATER, I found out that it is the "Domain" file in my ~/Library/Application Support/iWeb folder that holds the info for the sites I was working on. Obviously the script overwrote that one and made a new one. Is there ANY way to get this back to it's original state (some kind of an undo or something?). I didn't erase the trash, but none of the files in the trash have an actual "Domain" file. They are all aliases to the new "Domain" file.

Am I screwed?



[ Reply to This | # ]