• 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: working with find command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: working with find command


  • Subject: Re: working with find command
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 19 Aug 2015 11:14:26 +0200


Le 19/08/2015 à 00:30, Deivy Petrescu <email@hidden> a écrit :



What is wrong with:

set mypath to "/Users/ifbell/Desktop/processedvid/source.mp4"
alias mypath


?


You can enclose the alias by a “try” block.


Sorry,

set mypath to  Posix file ( "/Users/ifbell/Desktop/processedvid/source.mp4”) as string
alias mypath


Thanks to Chris (Stone) for (nicely) pointing it out to me.

If I make no error, the asker already posted the question in macScripter and in his thread it appeared that in the instruction:

 if exists POSIX file mypath as alias then 

mypath is an HFS+ path so the instruction fails because 
POSIX file "a:neat:hfs+:path:to:an:existing:file" returns
file ":a:neat:hfs+:path:to:an:existing:file"
which doesn't exists so the conversion as alias fails.


Yvan KOENIG running Yosemite 10.10.5 in French (VALLAURIS, France) mercredi 19 août 2015 11:13:48



 _______________________________________________
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: 
 >working with find command (From: Die Fledermaus <email@hidden>)
 >Re: working with find command (From: Deivy Petrescu <email@hidden>)
 >Re: working with find command (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: How do we Convert PICT to JPEG
  • Next by Date: Re: How do we Convert PICT to JPEG
  • Previous by thread: Re: working with find command
  • Next by thread: Re: working with find command
  • Index(es):
    • Date
    • Thread