Hi Steve

First, a quick way to the stack or standalone folder is 
specialfolderpath(“resources”). 

Check that your folders permissions are ok. 

export snapshot from rect 0,0,100,100 of this card to url 
("binfile:"&specialFolderPath("resources")&"/Pic.jpg") as JPEG

See if this helps when using your put tTempCrop into url(). 

> On 28 Jul 2018, at 21:41, Stephen MacLean via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi All,
> 
> Been a long time since I’ve done file work with LC, but I’m having an issue 
> saving an image to a file:
> 
> # set the defaultFolder to the folder containing the stackfile
> 
> set the itemDelimiter to slash
> 
> get the effective filename of this stack
> 
> set the defaultFolder to item 1 to -2 of it
> 
> put tTempCrop into URL "binfile:/tempMedia/testimage.jpg"
> 
> 
> results in a “Can’t open file” error.
> 
> Trying to save to a folder called “tempMedia” that is in the same directory 
> as the stack.
> 
> Mac OS 10.12.6, 9.01 RC1 Business.
> 
> TIA,
> 
> Steve MacLean
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to