Skip navigation
Home/Support/

Forums

3798 Views 5 Replies Latest reply: Jun 10, 2009 6:32 PM by 55G RSS
55G Calculating status... 5 posts since
Jun 10, 2009
Currently Being Moderated

Jun 10, 2009 12:19 AM

文字を入力するスクリプト

入力中のテキストフレームのカーソルの位置に特定の文字を入力するスクリプトをつくりたいのですが。

スクリプトについては,全くの初心者です。

(特定の文字列にキーボードのショートカットを当てたいだけなのですが。)

どうぞよろしくお願いします。

  • にゃす User 12 posts since
    Jun 10, 2009
    Currently Being Moderated
    1. Jun 10, 2009 1:50 AM (in response to 55G)
    Re: 文字を入力するスクリプト

    var cursor = app.activeDocument.selection[0];
    if(cursor.constructor.name == "InsertionPoint") {
    cursor.contents = "挿入したい文字列";
    }

  • にゃす User 12 posts since
    Jun 10, 2009
    Currently Being Moderated
    4. Jun 10, 2009 4:04 AM (in response to 55G)
    Re: 文字を入力するスクリプト

    Windows Vista+InDesign CS4 の環境では動いています。

     

    と書いて気がつきました。言葉足らずでスミマセン。記述は JavaScript です。

    AppleScript での記述は……

     

     

     

     

     

     

    どなたかお願いします。

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points