<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uske_S</author_name>
  <author_url>https://blog.hatena.ne.jp/uske_S/</author_url>
  <blog_title>DTPab</blog_title>
  <blog_url>https://uske-s.hatenablog.com/</blog_url>
  <categories>
    <anon>ExtendScript</anon>
    <anon>InDesign</anon>
  </categories>
  <description>どういう実装がいいのかいまいち決めきれないものの一つにこれがある。 いま使っているのは下記2種類。 var sel = app.activeDocument.selection[0]; // 1: アンカー付きオブジェクト専用プロパティにアクセスしてエラーを起こす try { sel.anchoredObjectSettings.anchorPoint; $.writeln(&quot;1: &quot;+true); } catch (e) { $.writeln(&quot;1: &quot;+false); } // 2: parentプロパティのインスタンスがCharacterコンストラクタかどうか確認する if (sel.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuske-s.hatenablog.com%2Fentry%2F2020%2F03%2F19%2F130119&quot; title=&quot;選択したオブジェクトがアンカー付きオブジェクトかどうかを判定する - DTPab&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-19 13:01:19</published>
  <title>選択したオブジェクトがアンカー付きオブジェクトかどうかを判定する</title>
  <type>rich</type>
  <url>https://uske-s.hatenablog.com/entry/2020/03/19/130119</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
