• 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: Icon view dilemma
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Icon view dilemma


  • Subject: Re: Icon view dilemma
  • From: Shane Stanley <email@hidden>
  • Date: Sun, 23 Jan 2011 22:36:14 +1100
  • Thread-topic: Icon view dilemma

On 23/1/11 10:23 PM, "OzSanta" <email@hidden> wrote:

> Dilemma. The following script works fine run from the script editor, but when
> placed in the user scripts folder and run from the Applescript icon menu, it
> returns '«constant ****narr»'  in stead of 'not arranged'.
>
> What must I do to fix it please?

It's not broken.

When you run it form the editor, the Finder's dictionary is loaded so the
four-character code can be translated into a more human-readable form -- but
the dictionary isn't read in just to run a script (imagine the delay every
time you ran a script).

You need to do something like:

if ArrangementValue = not arranged then
set ArrangementValue  to "not arranged"
else...


--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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

References: 
 >Icon view dilemma (From: OzSanta <email@hidden>)

  • Prev by Date: Icon view dilemma
  • Next by Date: Re: Icon view dilemma
  • Previous by thread: Icon view dilemma
  • Next by thread: Re: Icon view dilemma
  • Index(es):
    • Date
    • Thread