• 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: Scripting Filepaths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Filepaths


  • Subject: Re: Scripting Filepaths
  • From: James Bensley <email@hidden>
  • Date: Thu, 30 Jul 2009 16:48:48 +0100

I'm an AS n00b so this is just my two pence;

set current_user to do shell script("whoami")
set file_path to "/Users/" & current_user & /Desktop/MyFile.abc"

tada!

Regards,

James ;)

-----BEGIN GEEK CODE BLOCK-----
  Version: 3.1
GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V-
PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++
------END GEEK CODE BLOCK------
 _______________________________________________
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: Scripting Filepaths
      • From: Philip Aker <email@hidden>
    • Re: Scripting Filepaths
      • From: "J. Stewart" <email@hidden>
References: 
 >Scripting Filepaths (From: Jon Rosen <email@hidden>)
 >Re: Scripting Filepaths (From: Tim Mansour <email@hidden>)
 >Re: Scripting Filepaths (From: Jon Rosen <email@hidden>)
 >Re: Scripting Filepaths (From: Tim Mansour <email@hidden>)

  • Prev by Date: Re: Automating authorization dialog boxes for keychain certificate permission changes
  • Next by Date: Re: Automating authorization dialog boxes for keychain certificate permission changes
  • Previous by thread: Re: Scripting Filepaths
  • Next by thread: Re: Scripting Filepaths
  • Index(es):
    • Date
    • Thread