• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

File Save Problem

Guest
Aug 27, 2013 Aug 27, 2013

Copy link to clipboard

Copied

Hi Experts,

I am using MAC OSX 10.8.3

My script is :

#target indesign

var myDocument=app.activeDocument;

myDocument.save(File("/var/Untitled-1.indd"));

It give error

can not save "Untitled-1.indd" under a new name

While this script run successfully on MAC OSX 10.6.8

How save this file under a new name ?

I also give permission to  /Var/

using  sudo chmod -R 777 '/Var/'

Login from User ID in MAC OSX

Not System Administrator

Thanks.

TOPICS
Scripting

Views

543

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 28, 2013 Aug 28, 2013

Copy link to clipboard

Copied

While most file managers are not fussy about the cases used in File names, JavaScript is: could it be that your problem is caused by the difference between "var" and "Var"? Just guessing.

Dave

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 28, 2013 Aug 28, 2013

Copy link to clipboard

Copied

LATEST

Thanks Dave for reply

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines