Creating A Folder On A Volume Other Than The Startup Volume

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Creating A Folder On A Volume Other Than The Startup Volume

Post by johnmiller1950 » Wed Mar 12, 2008 1:25 pm

Greetings All,

I am writing an installer stack for my program. I want to be able to copy the program to a folder that I create on a volume other than the startup volume.

Revolution won't let me set the defaultfolder to a folder on a different volume (at least I haven't been successful,yet).

Also, I get an error message when I try to create the folder specifying the folder location.

What hasn't worked:

1. create folder "/Mac OS X Utilities/My Folder"

2. if I manually create the folder "My Folder" then the following doesn't work.

set the defaultfolder to "/Mac OS X Utilities/My Folder"



Any Suggestions?

Thanks
John Miller

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Wed Mar 12, 2008 1:32 pm

Hi John,

hmm, works for me! But looks like there is the "/Volumes" prefix missing in your script.

This works for me ("Ablage" is my external harddisk)
...
create folder "/Volumes/Ablage/Ab33333"
...

This one also:
...
set the defaultfolder to "/Volumes/Ablage/Ab33333"
...


Regards

Klaus

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Post by johnmiller1950 » Wed Mar 12, 2008 4:28 pm

Klaus,

Thanks for the input. I should have remembered the "/Volumes" prefix

John

Post Reply