• 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
Fwd: can't make alias into type text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: can't make alias into type text


  • Subject: Fwd: can't make alias into type text
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 17 Sep 2014 10:01:08 +0200

I got it but it’s awful.

tell application "System Events"
(file of every process whose frontmost is true)
first item of result
POSIX path of result
tell me to POSIX file result
set __frontApp to result as text
end tell

You may try to concatenate the different instructions to reduce their number.

Alternate structure to get rid of "tell me to" :

tell application "System Events"
(file of every process whose frontmost is true)
first item of result
POSIX path of result
end tell
POSIX file result
set __frontApp to result as text

I assume that the failure is due to the "tell me to" required when we execute all the instructions into the tell application "System Events" block.

Is it a deliberate behavior or a bug ?
Honestly I don’t know.
I’m a bit tired to file reports with no result.

Yvan KOENIG (VALLAURIS, France) mercredi 17 septembre 2014 10:01:03


 _______________________________________________
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: 
 >can't make alias into type text (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: can't make alias into type text
  • Next by Date: Re: can't make alias into type text
  • Previous by thread: Re: can't make alias into type text
  • Next by thread: Re: can't make alias into type text
  • Index(es):
    • Date
    • Thread