Re: Icon view dilemma
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