Skip to main content
y.fujisawa
Inspiring
October 26, 2016
Answered

Indesign CC2015 スタートアップがうまく動作しない Startup alias doesn't work.

  • October 26, 2016
  • 1 reply
  • 583 views

Mac10.8

Indesign CC2015.4

指定した寸法のページを生成するスクリプトを作成しています。

このスクリプトは実行時に以下のパスにjsxのエイリアスを作成する動きをしています。

/Applications/Adobe InDesign CC2015/Scripts/startup scripts/xxxx.jsx

I make script that makes specific size of sides.

This script copies its alias in the path below when they work.

/Applications/Adobe InDesign CC2015/Scripts/startup scripts/xxxx.jsx

スタートアップフォルダにエイリアスを生成することにより、

毎回ユーティリティ→スクリプトから起動する手間がなく

Indesignの起動時には自動的にxxxx.jsx が立ち上がるようにしております。

エイリアスの作成については以下のサイトを参考にしております。

参考サイト

Thanks to this script I don't need to start jsx files from [Utility] → [scripts]...

It automatically start when I start Indesign.

CC2014以前では正常するのですが、CC2015ではうまく動作しません。
具体的には、上部のツールバーにはスクリプトメニューは表示されておりますが、
実態が立ち上がっていないように見受けられます。上記サイトのコードの一部になりますが、
以下のように、第2引数に「false」エイリアスではなくシンボリックリンクにしてあげると正常に動作するようです。

It works fine in Indesign CC2014 or previous versions.

As a test, I make not alias but symbolic link, it works fine.

flag = aliasObj.createAlias(fileObj,false);

シンボリックリンクにするにあたり、修正規模が大きくなってしまうので、

エイリアのままで動作できるようにしたいのですが、可能でしょうか?

Is it difficult to continue using alias in Indesign CC2015?

ご存じの方がいらっしゃいましたらご教示いただけますと幸いです、よろしくお願いします。

Best regards,

Yasuo.

This topic has been closed for replies.
Correct answer y.fujisawa

Hi, John

Thank you for your help, and sorry for delay.

I find the reasons for this issue.

When I access an alias, before CC2014, <$.fileName> returns path which real file exists, but

after CC2015 and CC2017 ・・・ <$.fileName> returns path which an alias exists.

So I use resolve method(File object functions),that do the trick!

Thank you

Yasuo

1 reply

Inspiring
October 26, 2016

Hi,

because start up script has a target #targetengine which no allow to use alias.

use should use do script like this:

var myScPath = "xxx:/xxxxx/xxxxx.jsx";

if (File (myScPath).exists)
app.doScript(File(myScPath));
else alert ("No such as script");

instead of alias.

good luck

Regard

John

y.fujisawa
y.fujisawaAuthorCorrect answer
Inspiring
November 10, 2016

Hi, John

Thank you for your help, and sorry for delay.

I find the reasons for this issue.

When I access an alias, before CC2014, <$.fileName> returns path which real file exists, but

after CC2015 and CC2017 ・・・ <$.fileName> returns path which an alias exists.

So I use resolve method(File object functions),that do the trick!

Thank you

Yasuo