• 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: do shell problem UPDATE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: do shell problem UPDATE


  • Subject: RE: do shell problem UPDATE
  • From: luca materassi <email@hidden>
  • Date: Thu, 8 Nov 2007 16:01:03 +0100

Hi all,

after several tests i found the problem; the onerror message tells that there is no gpgwrap around even after hardcoding the correct full path, with or without the Volume name.

This is the actual code:

on adding folder items to this_folder after receiving these_items
set outpath to "/Users/user/Documents/msg/test.txt"
set fpath to POSIX path of these_items
set cmd to "/usr/local/bin/gpgwrap -p /Users/user/pw.txt gpg -o " & outpath & " -d " & fpath

try

do shell script cmd password "mypwd" with administrator privileges
on error the error_message number the error_number
display dialog "si รจ verificato un errore: " & the error_number & ". " & the error_message buttons {"OK"} default button 1

end try

end adding folder items to




_______________________________________________
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: do shell problem UPDATE
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: How to convert a POSIX path to normal path?
  • Next by Date: Re: Applescript and Bluetooth
  • Previous by thread: Re: How to convert a POSIX path to normal path?
  • Next by thread: RE: do shell problem UPDATE
  • Index(es):
    • Date
    • Thread