Klaus wrote: ↑Mon Oct 29, 2018 1:37 pm
If this happens in the IDE, probably "the defaultfolder" might be the "Programme" (Applications) folder or even a folder inside of the Livecode.app application bundle! I'm sure you will find your pic there.
In a standalone this is definitively not a place werhe we have write permission so this will fail in a runtime.
Not to discount Klaus's excellent advice, since you should know where the file is going to be saved, but as an addendum of sorts about the default folder.
If in the IDE, instead of trying to look at the places the default folder might be, you can open the message box and type -
This will tell you where the default folder is when you are developing. Remember that this can be changed in code at times, so if it does, simply bring the message box back up and check.
- Message Box...
- Selection_079.png (11.41 KiB) Viewed 4107 times
In a standalone, you can find the default folder in a number of ways as well, either with the answer dialog (if you just want the location), or with the answer folder dialog if you actually want to open the location up.
Code: Select all
on mouseUp
answer folder"where" with the defaultFolder
end mouseUp
As you can see, this opens the answer dialog to the direct folder directory -
- Answer Folder dialog...