Leopard Folder Direction

I’ve been learning applescript through The Missing Manual but I have one problem. I don’t know if I’m just doing it wrong or if its changed, but I can’t get apple script to recognize what I want. I have a folder inside two other folders that I want to be able to open through a script but it won’t work. Heres the script I’ve been trying.

Tell application “finder”
activate
make new finder window to “~/desktop/School Work/7th/Halocaust/”
end tell

To my knowledge from the book that should work, but It keeps giving me back when I try to run it:

Finder got an error can’t make “~/desktop/School Work/7th/Halocaust/” into a type item

If anyone knows the problem please tell me and maybe show me a fixed version.

Thanks for the help. :slight_smile:

Hi,

AppleScript works only with HFS paths (colon separated)


tell application "Finder"
	activate
	make new Finder window to folder "School Work:7th:Halocaust:" of desktop
end tell

Thanks for the help but I’m still getting an error.

The exact words being-

Finder got an error: Can’t get folder “School Work:7th:Halocaust:” of desktop

The book I’m using was written for Panther applescript. I’m not sure if its changed or if its just some setting I have set wrongly. If you know the answer please reply.

Is the final folder as equally misspelled as is your reference?

Yes

Strangely enough I just tried Deleting the old folder and creating a new one, and it worked. I used to have the folder in a different place so I guess my CPU was recognizing it as still being there when it wasn’t. Thanks for the help.:smiley: