• 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: Simple newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple newbie question


  • Subject: Re: Simple newbie question
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 17 Jun 2009 18:13:32 -0500

Oops ... forgot one little detail.

-- set fileAlias to alias "OS_X:Users:lutherfuller:Desktop:0906.1929v1.pdf"
set fileAlias to alias "OS_X:Users:lutherfuller:Desktop:getAccountInfo"
tell application "Finder"
length of ((name extension of fileAlias) as text)
if the result = 0 then
set extLen to 1
else
set extLen to 2 + the result
end if
(get name of fileAlias) as text
set fileName to text 1 thru -extLen of the result
end tell

 _______________________________________________
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: 
 >Simple newbie question (From: Peter Robertson <email@hidden>)

  • Prev by Date: Re: Simple newbie question
  • Next by Date: Re: Plan E from Outer Space
  • Previous by thread: Re: Simple newbie question
  • Next by thread: Re: Simple newbie question
  • Index(es):
    • Date
    • Thread