2012-05-04 2 views

答えて

3

まあ、AppleScriptのエディタでスクリプトライブラリから、私はitemitemからfile_track継承が読み書き可能プロパティnameを持っていることがわかります。だからあなたはそれを読めるように簡単に設定できるはずです。

編集:実際には、メタデータのほぼすべての部分がtrackの一部(file_trackがaswell継承している)と、ほとんどされて読み書きプロパティである...

Doug Adams曲からタイトルを変更することができます1 such scriptを持っていますiTunesで。たぶんそれを見ている?

Objective-C経由で設定する場合は、おそらくthis documentionが役に立ちます。

ウェブサイトからの抜粋:Finderの項目

int main (int argc, const char * argv[]) { 
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 
    FinderApplication *theFinder = [SBApplication applicationWithBundleIdentifier: @"com.apple.finder"]; 
    SBElementArray *trashItems = [[theFinder trash] items]; 
    if ([trashItems count] > 0) { 
     for (FinderItem *item in trashItems) { 
      if ([item locked]==YES) 
       [item setLocked:NO];   // <<<-- Setting the property 
     } 
    } 
    [pool drain]; 
    return 0; 
} 

のロックされたプロパティを設定リスト2-3

あなたが試してみました:

+0

ありがとう、私はそれを見るつもりです。私は、iTunes.hファイル内のプロパティ宣言を持つキーワードコピーのために混乱しました。実際には、それは動作しますので、願って! – mvdb

+0

あなたの質問を解決した場合は、その答えを忘れないようにしてください。 :) –

+0

うわー大丈夫ですね:) – mvdb

関連する問題