• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: a stationery is not a stationary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a stationery is not a stationary


  • Subject: Re: a stationery is not a stationary
  • From: Axel Luttgens <email@hidden>
  • Date: Wed, 07 Sep 2011 19:17:53 +0200

Le 7 sept. 2011 à 18:28, KOENIG Yvan a écrit :

> Hello
>
> I'm a bit puzzled.
> Given a file whose pathname is:
> full:Hfs:path:to:my:file,
> Thru the infos window, I define it as a stationary/template.
>
> Then I run this huge script:
>
> tell application "Finder"
> stationary of ("full:Hfs:path:to:my:file" as alias)
> end
>
> The result is always false.
>
> Same behavior with :
>
> tell application "System Events"
> 	stationery of disk item "full:Hfs:path:to:my:file"
> end tell
>
> I get that under 10.6.8 as well as under 10.7.1

Strange, I dont' have that problem here with Lion.
Following snippet:

	tell application "Finder"
		stationery of item "sample.txt" of desktop
		set HFSP to item "Cisco Notes.txt" of desktop as text
		stationery of (HFSP as alias)
		stationery of (alias HFSP)
	end tell

outputs expected boolean values (true or false, depending on the setting for file "sample.txt" in the information window).


> Is there a workaround available ?

Don't remember whether command /usr/bin/GetFileInfo comes on a stock install or with Developer Tools but, should you have it, you could have a look at the output of:

	/usr/bin/GetFileInfo -a /path/to/my/file

when checking/unchecking the "stationary" checkbox.
This should at least allow to rule out (or not) the AppleScript dimension.

HTH,
Axel


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: a stationery is not a stationary
      • From: KOENIG Yvan <email@hidden>
    • Re: a stationery is not a stationary
      • From: Axel Luttgens <email@hidden>
References: 
 >a stationery is not a stationary (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Problems with folder actions
  • Next by Date: Re: Problems with folder actions
  • Previous by thread: a stationery is not a stationary
  • Next by thread: Re: a stationery is not a stationary
  • Index(es):
    • Date
    • Thread